From 22c32052164c42aab7dad76e5220ef802c99d275 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Fri, 28 Oct 2011 13:33:18 +0000 Subject: [PATCH] // an other bugfix about remi display header and footer new system --- classes/Controller.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/classes/Controller.php b/classes/Controller.php index 2092d8555..5efead00a 100644 --- a/classes/Controller.php +++ b/classes/Controller.php @@ -124,18 +124,17 @@ abstract class ControllerCore if ($this->checkAccess()) { - // postProcess handles ajaxProcess + // postProcess handles ajaxProcess $this->postProcess(); - - if ($this->display_header || (isset($this->className) && $this->className)) + if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { $this->setMedia(); $this->initHeader(); } $this->initContent(); - - if ($this->display_footer || (isset($this->className) && $this->className)) + + if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) $this->initFooter(); // default behavior for ajax process is to use $_POST[action] or $_GET[action]