From 4b4dba05e8bbb9f416edae698066692f1ad4774a Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 21 Nov 2018 16:53:29 +0800 Subject: [PATCH] Process/Php7.php --- Process/Php7.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Process/Php7.php b/Process/Php7.php index dff9646d..a8b224bc 100644 --- a/Process/Php7.php +++ b/Process/Php7.php @@ -38,14 +38,14 @@ class Pman_Core_Process_Php7 extends Pman echo "Looking for {$dir}\n"; - foreach (scandir(implode('/', $dir)) as $d) { + foreach (scandir($dir) as $d) { if (!strlen($d) || $d[0] == '.') { continue; } if (is_dir($d)) { - $this->scan(array_merge($dir, array($d)), array_merge($cls, array($d))); + $this->scan(array_merge($route, array($d))); continue; } @@ -53,7 +53,7 @@ class Pman_Core_Process_Php7 extends Pman continue; } - require_once implode('/', $cls) . "/" . $d; + require_once implode('/', $route) . "/" . $d; } -- 2.39.2