[-] BO : FixBug Install currency on Localization Pack

This commit is contained in:
jeromenadaud committed 2013-07-31 09:38:10 +02:00
1 parent 0e3f2d6a82
commit e1b7470845
1 file changed
+7 -4
+7 -4
View File
@@ -71,10 +71,15 @@ class LocalizationPackCore
} }
foreach ($selection as $selected) foreach ($selection as $selected)
if (strtolower((string)$selected) == 'currencies') if (strtolower((string)$selected) == 'currencies')
{
if (!Validate::isLocalizationPackSelection($selected) || !$this->{'_install'.ucfirst($selected)}($xml, true)) if (!Validate::isLocalizationPackSelection($selected) || !$this->{'_install'.ucfirst($selected)}($xml, true))
return false; 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; return true;
} }
@@ -242,8 +247,6 @@ class LocalizationPackCore
{ {
if (isset($xml->currencies->currency)) if (isset($xml->currencies->currency))
{ {
foreach ($xml->currencies->currency as $data) foreach ($xml->currencies->currency as $data)
{ {
$attributes = $data->attributes(); $attributes = $data->attributes();