Process/Php7.php
[Pman.Core] / Process / Php7.php
index 034b339..0296486 100644 (file)
@@ -45,16 +45,13 @@ class Pman_Core_Process_Php7 extends Pman
     {
         $dir = $this->rootDir . "/" . implode("/", $route);
         
-        echo "Looking for {$dir}\n";
-        
         foreach (scandir($dir) as $d) {
             
             if (!strlen($d) || $d[0] == '.') {
                 continue;
             }
             
-            if (is_dir($d)) {
-                echo "directory : {$d}\n";
+            if (is_dir("{$dir}/{$d}")) {
                 $this->scan(array_merge($route, array($d)));
                 continue;
             }
@@ -63,10 +60,6 @@ class Pman_Core_Process_Php7 extends Pman
                 continue;
             }
             
-            if(empty($route)){
-                continue;
-            }
-            
             try {
                 
                 require_once implode('/', $route) . "/" . $d;