Skip to content

Commit

Permalink
// languages installation
Browse files Browse the repository at this point in the history
  • Loading branch information
rGaillard committed Dec 17, 2014
1 parent 00a8495 commit b2f0b3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install-dev/models/install.php
Expand Up @@ -345,8 +345,10 @@ public function installLanguages($languages_list = null)
'allow_accented_chars_url' => (string)$xml->allow_accented_chars_url
);

if (!InstallSession::getInstance()->safe_mode || !Language::downloadAndInstallLanguagePack($iso, _PS_INSTALL_VERSION_, $params_lang))
if (InstallSession::getInstance()->safe_mode)
Language::checkAndAddLanguage($iso, false, true, $params_lang);
else
Language::downloadAndInstallLanguagePack($iso, _PS_INSTALL_VERSION_, $params_lang);

Language::loadLanguages();
Tools::clearCache();
Expand Down

0 comments on commit b2f0b3b

Please sign in to comment.