// context->controller now work for adminController too

This commit is contained in:
rMalie committed 2011-10-06 09:55:28 +00:00
1 parent 5db4ba7b45
commit 2a5f66203a
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -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');
} }
-1
View File
@@ -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()