From 15c50a48dadcbca41ba860eb3e55bca81a095499 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 30 Sep 2011 07:42:20 +0000 Subject: [PATCH] // ChangeCurrencyController : refacto done --- controllers/front/ChangeCurrencyController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/front/ChangeCurrencyController.php b/controllers/front/ChangeCurrencyController.php index 1c8c3e776..1496a2b51 100644 --- a/controllers/front/ChangeCurrencyController.php +++ b/controllers/front/ChangeCurrencyController.php @@ -27,10 +27,14 @@ class ChangeCurrencyControllerCore extends FrontController { + /** + * Assign template vars related to page content + * @see FrontController::process() + */ public function process() { $currency = new Currency((int)Tools::getValue('id_currency')); - if (Validate::isLoadedObject($currency) AND !$currency->deleted) + if (Validate::isLoadedObject($currency) && !$currency->deleted) { $this->context->cookie->id_currency = (int)$currency->id; die('1');