From 0ecc2fb0a026951ef1d073a17c642af7f836428f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Nadaud?= Date: Mon, 29 Jul 2013 18:36:55 +0200 Subject: [PATCH] [-] BO : FixBug #PSCFV-9965 currency not active by default in Localization pack --- classes/LocalizationPack.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/LocalizationPack.php b/classes/LocalizationPack.php index bfa03e301..09aeb17fb 100644 --- a/classes/LocalizationPack.php +++ b/classes/LocalizationPack.php @@ -70,7 +70,10 @@ class LocalizationPackCore return $res; } foreach ($selection as $selected) - if (!Validate::isLocalizationPackSelection($selected) || !$this->{'_install'.ucfirst($selected)}($xml)) + if (strtolower((string)$selected) == 'currencies') + if (!Validate::isLocalizationPackSelection($selected) || !$this->{'_install'.ucfirst($selected)}($xml, true)) + return false; + elseif (!Validate::isLocalizationPackSelection($selected) || !$this->{'_install'.ucfirst($selected)}($xml)) return false; return true;