From d97b2f999cd8052ae8e4e7780888c81b3da0a30e Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 27 Oct 2011 15:37:42 +0000 Subject: [PATCH] // Fix add to cart git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9687 b9a71923-0436-4b27-9f14-aed3839534dd --- 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) {