// Fix change on currencies with context

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8148 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-08-22 14:46:32 +00:00
parent 99c89469fb
commit a4f6bde797
+3 -2
View File
@@ -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();