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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9714 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-10-28 13:33:18 +00:00
parent 3e3ff64cc5
commit 71ecfb917b
+3 -4
View File
@@ -124,10 +124,9 @@ 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();
@@ -135,7 +134,7 @@ abstract class ControllerCore
$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]