// Change display_header and display_footer behavior on BackOffice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9710 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+11
-3
@@ -122,10 +122,18 @@ abstract class ControllerCore
|
||||
{
|
||||
$this->init();
|
||||
|
||||
if ($this->checkAccess())
|
||||
// postProcess handles ajaxProcess
|
||||
$this->postProcess();
|
||||
|
||||
if ($this->display_header || (isset($this->className) && $this->className))
|
||||
{
|
||||
if ($this->ajax && method_exists($this, 'ajaxPreprocess'))
|
||||
$this->ajaxPreProcess();
|
||||
$this->setMedia();
|
||||
$this->initHeader();
|
||||
}
|
||||
|
||||
$this->initContent();
|
||||
if ($this->display_footer || (isset($this->className) && $this->className))
|
||||
$this->initFooter();
|
||||
|
||||
// postProcess handles ajaxProcess
|
||||
$this->postProcess();
|
||||
|
||||
Reference in New Issue
Block a user