From 42a1b6d5c4e08868325118f4d4375f3f6a9258f6 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Wed, 5 Sep 2012 08:00:49 +0000 Subject: [PATCH] [-] Installer : install failed when you had an exotic (i.e. not by default in the installer) default country/language #PSCFV-3891 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17171 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/LocalizationPack.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/LocalizationPack.php b/classes/LocalizationPack.php index 1650cb0a7..cf1e0011b 100644 --- a/classes/LocalizationPack.php +++ b/classes/LocalizationPack.php @@ -61,7 +61,8 @@ class LocalizationPackCore { if (!$id_lang = (int)Language::getIdByIso($this->iso_code_lang)) $id_lang = 1; - Configuration::updateValue('PS_LANG_DEFAULT', $id_lang); + if (!$install_mode) + Configuration::updateValue('PS_LANG_DEFAULT', $id_lang); } if ($install_mode && $res && isset($this->iso_currency))