// Fix change on currencies with context
This commit is contained in:
@@ -34,11 +34,12 @@ class ChangeCurrencyControllerCore extends FrontController
|
|||||||
$currency = new Currency((int)Tools::getValue('id_currency'));
|
$currency = new Currency((int)Tools::getValue('id_currency'));
|
||||||
if (Validate::isLoadedObject($currency) AND !$currency->deleted)
|
if (Validate::isLoadedObject($currency) AND !$currency->deleted)
|
||||||
{
|
{
|
||||||
$this->cookie->id_currency = (int)($currency->id);
|
$this->context->cookie->id_currency = (int)$currency->id;
|
||||||
die('1');
|
die('1');
|
||||||
}
|
}
|
||||||
die('0');
|
die('0');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$this->init();
|
$this->init();
|
||||||
|
|||||||
Reference in New Issue
Block a user