From 4c08e5f26405525cedf382745f1dfec969fdd131 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Fri, 24 Feb 2012 13:08:51 +0000 Subject: [PATCH] // Translation all modules in mode DEV --- controllers/admin/AdminTranslationsController.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index e7c41ee45..c2991332d 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -1710,11 +1710,14 @@ class AdminTranslationsControllerCore extends AdminController $this->displayWarning(Tools::displayError('There are no modules in your copy of PrestaShop. Use the Modules tab to activate them or go to our Website to download additional Modules.')); else { - // Get all module which are installed for to have a minimum of POST - $modules = Module::getModulesInstalled(); + if (!_PS_MODE_DEV_) + { + // Get all module which are installed for to have a minimum of POST + $modules = Module::getModulesInstalled(); - foreach ($modules as &$module) - $module = $module['name']; + foreach ($modules as &$module) + $module = $module['name']; + } $arr_find_and_fill = array();