[-] IN : Do not test module names if they are not directories

This commit is contained in:
gRoussac
2013-09-08 18:25:54 +02:00
parent 683513a9d2
commit e5337f5e76
@@ -44,7 +44,7 @@ function move_translations_module_file()
foreach ($modules as $module_name)
{
// 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;
foreach ($languages as $lang)