From e1b747084554f7038497283f4fe0c423e2342720 Mon Sep 17 00:00:00 2001 From: jeromenadaud Date: Wed, 31 Jul 2013 09:38:10 +0200 Subject: [PATCH] [-] BO : FixBug Install currency on Localization Pack --- classes/LocalizationPack.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/classes/LocalizationPack.php b/classes/LocalizationPack.php index 09aeb17fb..5a738b1a4 100644 --- a/classes/LocalizationPack.php +++ b/classes/LocalizationPack.php @@ -71,10 +71,15 @@ class LocalizationPackCore } foreach ($selection as $selected) 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; + } + else + { + if (!Validate::isLocalizationPackSelection($selected) || !$this->{'_install'.ucfirst($selected)}($xml)) + return false; + } return true; } @@ -242,8 +247,6 @@ class LocalizationPackCore { if (isset($xml->currencies->currency)) { - - foreach ($xml->currencies->currency as $data) { $attributes = $data->attributes();