// Fix default id lang in localization packs

This commit is contained in:
rMalie
2012-06-20 08:36:51 +00:00
parent f3f525648a
commit c90e61ee34
3 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ class InstallModelInstall extends InstallAbstractModel
}
$flip_languages = array_flip($languages);
Configuration::updateGlobalValue('PS_LANG_DEFAULT', $flip_languages[$this->language->getLanguageIso()]);
$id_lang = (!empty($flip_languages[$this->language->getLanguageIso()])) ? $flip_languages[$this->language->getLanguageIso()] : 1;
Configuration::updateGlobalValue('PS_LANG_DEFAULT', $id_lang);
return true;
}