From 963df2188309d1255c1851b3c07de0f1892e5433 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13602 b9a71923-0436-4b27-9f14-aed3839534dd --- 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();