// something was missing in last commit
This commit is contained in:
@@ -1875,26 +1875,10 @@ class AdminTranslationsControllerCore extends AdminController
|
|||||||
throw new PrestaShopException(Tools::displayError('The module directory must be writable.'));
|
throw new PrestaShopException(Tools::displayError('The module directory must be writable.'));
|
||||||
|
|
||||||
$modules = array();
|
$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();
|
||||||
// Get all module which are installed for to have a minimum of POST
|
foreach ($modules as &$module)
|
||||||
$modules = Module::getModulesInstalled();
|
$module = $module['name'];
|
||||||
|
|
||||||
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.'));
|
|
||||||
|
|
||||||
return $modules;
|
return $modules;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user