From 3aa07f53df7305e0927cf95c8dcba8f411a62dee Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 27 Oct 2011 15:37:42 +0000 Subject: [PATCH] // Fix add to cart --- classes/Controller.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/classes/Controller.php b/classes/Controller.php index 31ef34641..774a00ae0 100644 --- a/classes/Controller.php +++ b/classes/Controller.php @@ -120,11 +120,15 @@ abstract class ControllerCore // postProcess handles ajaxProcess $this->postProcess(); - $this->setMedia(); - $this->initHeader(); + if ($this->display_header) + { + $this->setMedia(); + $this->initHeader(); + } $this->initContent(); - $this->initFooter(); + if ($this->display_footer) + $this->initFooter(); if ($this->ajax) {