[-] BO : FixBug #PSCFV-9965 currency not active by default in Localization pack

This commit is contained in:
Jérôme Nadaud
2013-07-29 18:36:55 +02:00
parent 5f791dc839
commit 0ecc2fb0a0

View File

@@ -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;