From e5337f5e76484ac28e8746b6e86f365fe9199bdd Mon Sep 17 00:00:00 2001 From: gRoussac Date: Sun, 8 Sep 2013 18:25:54 +0200 Subject: [PATCH] [-] IN : Do not test module names if they are not directories --- install-dev/upgrade/php/move_translations_module_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dev/upgrade/php/move_translations_module_file.php b/install-dev/upgrade/php/move_translations_module_file.php index fa2239a72..441ed22db 100644 --- a/install-dev/upgrade/php/move_translations_module_file.php +++ b/install-dev/upgrade/php/move_translations_module_file.php @@ -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)