This commit is contained in:
Rémi Gaillard
2013-03-11 15:06:57 +01:00
parent 68c9da5f25
commit 8625f39c07
-2
View File
@@ -331,8 +331,6 @@ class LocalizationPackCore
$this->_errors[] = Tools::displayError('Server does not have permissions for writing.');
}
}
}
// change the default language if there is only one language in the localization pack
if (!count($this->_errors) && $install_mode && isset($attributes['iso_code']) && count($xml->languages->language) == 1)
$this->iso_code_lang = $attributes['iso_code'];