// Fix default id lang in localization packs

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16090 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-06-20 08:36:51 +00:00
parent 0119a39358
commit 35e7fa4c4d
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;
}