Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r4590 -r4594 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4590) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4594) @@ -146,7 +146,10 @@ function findConfigFiles($folderPath) { - $folderPath = str_replace(FULL_PATH, '', $folderPath); // this make sense, since $folderPath may NOT contain FULL_PATH + // if FULL_PATH = "/" ensure, that all "/" in $folderPath are not deleted + $reg_exp = '/^'.preg_quote(FULL_PATH, '/').'/'; + $folderPath = preg_replace($reg_exp, '', $folderPath, 1); // this make sense, since $folderPath may NOT contain FULL_PATH + $fh=opendir(FULL_PATH.$folderPath); while(($sub_folder=readdir($fh))) {