// missing dir sep on is_dir (open_basedir)

This commit is contained in:
gRoussac committed 2013-11-06 18:23:01 +01:00
1 parent fc6041fa33
commit afe6c9bc6f
1 file changed
+1 -1
+1 -1
View File
@@ -1258,7 +1258,7 @@ abstract class ModuleCore
$modules = scandir(_PS_MODULE_DIR_); $modules = scandir(_PS_MODULE_DIR_);
foreach ($modules as $name) foreach ($modules as $name)
{ {
if (is_dir(_PS_MODULE_DIR_.$name) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) if (is_dir(_PS_MODULE_DIR_.$name.DIRECTORY_SEPARATOR) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php'))
{ {
if (!Validate::isModuleName($name)) if (!Validate::isModuleName($name))
throw new PrestaShopException(sprintf('Module %s is not a valid module name', $name)); throw new PrestaShopException(sprintf('Module %s is not a valid module name', $name));