// yet another display fix for new display header/footer
This commit is contained in:
@@ -816,7 +816,7 @@ class AdminControllerCore extends Controller
|
||||
$this->context->smarty->assign('display_header', $this->display_header);
|
||||
$this->context->smarty->assign('display_footer', $this->display_footer);
|
||||
$this->context->smarty->assign('meta_title', $this->meta_title);
|
||||
|
||||
|
||||
// Template override
|
||||
$tpl = $this->tpl_folder.'content.tpl';
|
||||
$tpl_action = $this->tpl_folder.$this->display.'.tpl';
|
||||
@@ -1074,6 +1074,7 @@ class AdminControllerCore extends Controller
|
||||
$this->content .= $this->initList();
|
||||
$this->content .= $this->initOptions();
|
||||
}
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'table' => $this->table,
|
||||
'current' => self::$currentIndex,
|
||||
|
||||
@@ -147,11 +147,14 @@ abstract class ControllerCore
|
||||
elseif (method_exists($this, 'displayAjax'))
|
||||
$this->displayAjax();
|
||||
}
|
||||
else
|
||||
$this->display();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->initCursedPage();
|
||||
|
||||
$this->display();
|
||||
$this->display();
|
||||
}
|
||||
}
|
||||
|
||||
public function displayHeader($display = true)
|
||||
|
||||
@@ -391,12 +391,9 @@ class AdminHomeControllerCore extends AdminController
|
||||
|
||||
}
|
||||
|
||||
public function displayAjax()
|
||||
{
|
||||
echo $this->content;
|
||||
}
|
||||
public function ajaxProcessGetAdminHomeElement()
|
||||
{
|
||||
$this->content_only = true;
|
||||
$result = array();
|
||||
$content = '';
|
||||
|
||||
@@ -512,6 +509,7 @@ class AdminHomeControllerCore extends AdminController
|
||||
$upgrade = new Upgrader();
|
||||
$upgrade->checkPSVersion();
|
||||
}
|
||||
|
||||
$smarty->assign('upgrade', $upgrade);
|
||||
|
||||
$smarty->assign('show_screencast', $this->context->employee->show_screencast);
|
||||
|
||||
Reference in New Issue
Block a user