From 8be339463d8d58e556a1ff23574609e1e25609ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 12 Nov 2013 12:36:51 +0100 Subject: [PATCH] // small fix --- classes/Currency.php | 2 +- classes/LocalizationPack.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Currency.php b/classes/Currency.php index f37d47bcd..d92660542 100644 --- a/classes/Currency.php +++ b/classes/Currency.php @@ -296,7 +296,7 @@ class CurrencyCore extends ObjectModel */ public static function getIdByIsoCode($iso_code, $id_shop = 0) { - $cache_id = 'Currency::getIdByIsoCode'.pSQL($iso_code).'-'.(int)$id_shop; + $cache_id = 'Currency::getIdByIsoCode_'.pSQL($iso_code).'-'.(int)$id_shop; if (!Cache::isStored($cache_id)) { $query = Currency::getIdByQuery($id_shop); diff --git a/classes/LocalizationPack.php b/classes/LocalizationPack.php index 5a738b1a4..6cf02bc8c 100644 --- a/classes/LocalizationPack.php +++ b/classes/LocalizationPack.php @@ -63,6 +63,7 @@ class LocalizationPackCore if ($install_mode && $res && isset($this->iso_currency)) { + Cache::clean('Currency::getIdByIsoCode_*'); $res &= Configuration::updateValue('PS_CURRENCY_DEFAULT', (int)Currency::getIdByIsoCode($this->iso_currency)); Currency::refreshCurrencies(); }