Commit 6d728ce7 by Seldaek

* Fixed a classpath rebuilding bug that occured on some UNIX platforms due to…

* Fixed a classpath rebuilding bug that occured on some UNIX platforms due to glob() inconsistencies git-svn-id: svn://dwoo.org/dwoo/trunk@15 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent a7e3b93b
......@@ -1473,13 +1473,15 @@ class DwooLoader
}
// iterates over all files/folders
foreach(glob($path.DIRECTORY_SEPARATOR.'*') as $f)
{
if(is_dir($f))
self::rebuildClassPathCache($f, false);
elseif(basename($f) !== 'classpath.cache')
self::$classpath[str_replace(array('function.','block.','modifier.','outputfilter.','filter.','prefilter.','postfilter.','pre.','post.','output.','shared.','helper.'), '', basename($f,'.php'))] = $f;
}
$list = glob($path.DIRECTORY_SEPARATOR.'*');
if(is_array($list))
foreach($list as $f)
{
if(is_dir($f))
self::rebuildClassPathCache($f, false);
elseif(basename($f) !== 'classpath.cache')
self::$classpath[str_replace(array('function.','block.','modifier.','outputfilter.','filter.','prefilter.','postfilter.','pre.','post.','output.','shared.','helper.'), '', basename($f,'.php'))] = $f;
}
// save in file if it's the first call (not recursed)
if($cacheFile!==false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment