// context->controller now work for adminController too
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9090 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -106,6 +106,7 @@ abstract class ControllerCore
|
|||||||
$this->display_footer = true;
|
$this->display_footer = true;
|
||||||
|
|
||||||
$this->context = Context::getContext();
|
$this->context = Context::getContext();
|
||||||
|
$this->context->controller = $this;
|
||||||
$this->ajax = Tools::getValue('ajax') || Tools::isSubmit('ajax');
|
$this->ajax = Tools::getValue('ajax') || Tools::isSubmit('ajax');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -338,7 +338,6 @@ class FrontControllerCore extends Controller
|
|||||||
|
|
||||||
$this->context->cart = $cart;
|
$this->context->cart = $cart;
|
||||||
$this->context->currency = $currency;
|
$this->context->currency = $currency;
|
||||||
$this->context->controller = $this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function postProcess()
|
public function postProcess()
|
||||||
|
|||||||
Reference in New Issue
Block a user