[-] BO : FixBug Install currency on Localization Pack

This commit is contained in:
jeromenadaud
2013-07-31 09:38:10 +02:00
parent 0e3f2d6a82
commit e1b7470845
+7 -4
View File
@@ -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();