[-] IN : Do not test module names if they are not directories
This commit is contained in:
1 parent
683513a9d2
commit
e5337f5e76
1 file changed
+1
-1
@@ -44,7 +44,7 @@ function move_translations_module_file()
|
|||||||
foreach ($modules as $module_name)
|
foreach ($modules as $module_name)
|
||||||
{
|
{
|
||||||
// Check if is a good module
|
// Check if is a good module
|
||||||
if (in_array($module_name, array('.', '..', '.svn', '.htaccess', 'index.php', 'autoupgrade')))
|
if (in_array($module_name, array('.', '..', '.svn', '.htaccess', 'index.php', 'autoupgrade')) || !is_dir(_PS_MODULE_DIR_.'/'.$module_name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
foreach ($languages as $lang)
|
foreach ($languages as $lang)
|
||||||
|
|||||||
Reference in new issue
Block a user