// ChangeCurrencyController : refacto done

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8914 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-09-30 07:42:20 +00:00
parent 97a30b4aab
commit a2483c8114
@@ -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');