more quote identeiifers fixessss
[Pman.Core] / Process / Php7.php
index 9805cae..608107d 100644 (file)
@@ -36,7 +36,7 @@ class Pman_Core_Process_Php7 extends Pman
         });
         
         $this->scan(array("Pman"));
-        $this->scan(array("Hebe"));
+        $this->scan(array($this->bootLoader->project));
         
         exit;
     }
@@ -45,15 +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)) {
+            if (is_dir("{$dir}/{$d}")) {
                 $this->scan(array_merge($route, array($d)));
                 continue;
             }
@@ -62,10 +60,6 @@ class Pman_Core_Process_Php7 extends Pman
                 continue;
             }
             
-            if(empty($route)){
-                continue;
-            }
-            
             try {
                 
                 require_once implode('/', $route) . "/" . $d;