From ba0725cd4ecc275b7b6f6cffce3dcc09b3f7f727 Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 22 Aug 2011 14:46:32 +0000 Subject: [PATCH] // Fix change on currencies with context --- controllers/ChangeCurrencyController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/ChangeCurrencyController.php b/controllers/ChangeCurrencyController.php index bc7847cb6..0257414fb 100644 --- a/controllers/ChangeCurrencyController.php +++ b/controllers/ChangeCurrencyController.php @@ -30,15 +30,16 @@ class ChangeCurrencyControllerCore extends FrontController public function process() { parent::process(); - + $currency = new Currency((int)Tools::getValue('id_currency')); 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('0'); } + public function run() { $this->init();