JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 08:58:18 +0000 (16:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 08:58:18 +0000 (16:58 +0800)
JsCompile.php

index d7c138c..38c9003 100644 (file)
@@ -140,7 +140,8 @@ class Pman_Core_JsCompile  extends Pman
     }
     
     function gatherProjects() {
-        $src =  realpath(dirname(__FILE__).'/../');
+        $src= array_shift(explode(PATH_SEPARATOR, ini_get('include_path'))) .'/Pman';
+        
         $ret = array();
         foreach(scandir($src) as $f) {
             if (!strlen($f) || $f[0] == '.') {