// an other bugfix about remi display header and footer new system

This commit is contained in:
mMarinetti committed 2011-10-28 13:33:18 +00:00
1 parent de59d56ed4
commit 22c3205216
1 file changed
+4 -5
+4 -5
View File
@@ -124,18 +124,17 @@ abstract class ControllerCore
if ($this->checkAccess()) if ($this->checkAccess())
{ {
// postProcess handles ajaxProcess // postProcess handles ajaxProcess
$this->postProcess(); $this->postProcess();
if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
if ($this->display_header || (isset($this->className) && $this->className))
{ {
$this->setMedia(); $this->setMedia();
$this->initHeader(); $this->initHeader();
} }
$this->initContent(); $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(); $this->initFooter();
// default behavior for ajax process is to use $_POST[action] or $_GET[action] // default behavior for ajax process is to use $_POST[action] or $_GET[action]