From 67b3978397a96049e22a2a88048e0c37343f8fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 25 Mar 2013 15:54:19 +0100 Subject: [PATCH] // Fix the display of errors on adding localization pack --- classes/LocalizationPack.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/LocalizationPack.php b/classes/LocalizationPack.php index 442c1f8bd..7111dcb0f 100644 --- a/classes/LocalizationPack.php +++ b/classes/LocalizationPack.php @@ -295,7 +295,6 @@ class LocalizationPackCore // if we are not in an installation context or if the pack is not available in the local directory if (Language::getIdByIso($attributes['iso_code']) && !$install_mode) continue; - $errors = Language::downloadAndInstallLanguagePack($attributes['iso_code'], $attributes['version']); if ($errors !== true && is_array($errors)) $this->_errors = array_merge($this->_errors, $errors); @@ -304,7 +303,7 @@ class LocalizationPackCore if (!count($this->_errors) && $install_mode && isset($attributes['iso_code']) && count($xml->languages->language) == 1) $this->iso_code_lang = $attributes['iso_code']; - return true; + return !count($this->_errors); } protected function _installUnits($xml)