// small fix
This commit is contained in:
1 parent
3f42a381a4
commit
8be339463d
2 files changed
+2
-1
No files matched your search
@@ -296,7 +296,7 @@ class CurrencyCore extends ObjectModel
|
|||||||
*/
|
*/
|
||||||
public static function getIdByIsoCode($iso_code, $id_shop = 0)
|
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))
|
if (!Cache::isStored($cache_id))
|
||||||
{
|
{
|
||||||
$query = Currency::getIdByQuery($id_shop);
|
$query = Currency::getIdByQuery($id_shop);
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ class LocalizationPackCore
|
|||||||
|
|
||||||
if ($install_mode && $res && isset($this->iso_currency))
|
if ($install_mode && $res && isset($this->iso_currency))
|
||||||
{
|
{
|
||||||
|
Cache::clean('Currency::getIdByIsoCode_*');
|
||||||
$res &= Configuration::updateValue('PS_CURRENCY_DEFAULT', (int)Currency::getIdByIsoCode($this->iso_currency));
|
$res &= Configuration::updateValue('PS_CURRENCY_DEFAULT', (int)Currency::getIdByIsoCode($this->iso_currency));
|
||||||
Currency::refreshCurrencies();
|
Currency::refreshCurrencies();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user