From 582bc67633daaf58705bb90f3e65fd6d287db32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 8 Apr 2013 17:53:56 +0200 Subject: [PATCH] // something was missing in last commit --- .../admin/AdminTranslationsController.php | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index 3b4c7e9ad..a02e767dd 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -1875,26 +1875,10 @@ class AdminTranslationsControllerCore extends AdminController throw new PrestaShopException(Tools::displayError('The module directory must be writable.')); $modules = array(); - if (!_PS_MODE_DEV_ && $this->theme_selected == self::DEFAULT_THEME_NAME) - { - // Get all module which are installed for to have a minimum of POST - $modules = Module::getModulesInstalled(); - - foreach ($modules as &$module) - $module = $module['name']; - } - elseif ($this->theme_selected == self::DEFAULT_THEME_NAME) - { - if (Tools::file_exists_cache($this->translations_informations['modules']['dir'])) - $modules = scandir($this->translations_informations['modules']['dir']); - else - $this->displayWarning(Tools::displayError('There are no active modules in this copy of PrestaShop. Please use the Modules page to activate, or visit the PrestaShop Addons Store to download them.')); - } - else - if (Tools::file_exists_cache($this->translations_informations['modules']['override']['dir'])) - $modules = scandir($this->translations_informations['modules']['override']['dir']); - else - $this->displayWarning(Tools::displayError('There are no active modules in this copy of PrestaShop. Please use the Modules page to activate, or visit the PrestaShop Addons Store to download them.')); + // Get all module which are installed for to have a minimum of POST + $modules = Module::getModulesInstalled(); + foreach ($modules as &$module) + $module = $module['name']; return $modules; }