// ChangeCurrencyController : refacto done
This commit is contained in:
1 parent
77ac0fd7d2
commit
15c50a48da
1 file changed
+5
-1
@@ -27,10 +27,14 @@
|
|||||||
|
|
||||||
class ChangeCurrencyControllerCore extends FrontController
|
class ChangeCurrencyControllerCore extends FrontController
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Assign template vars related to page content
|
||||||
|
* @see FrontController::process()
|
||||||
|
*/
|
||||||
public function process()
|
public function process()
|
||||||
{
|
{
|
||||||
$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) && !$currency->deleted)
|
||||||
{
|
{
|
||||||
$this->context->cookie->id_currency = (int)$currency->id;
|
$this->context->cookie->id_currency = (int)$currency->id;
|
||||||
die('1');
|
die('1');
|
||||||
|
|||||||
Reference in new issue
Block a user