// yet another display fix for new display header/footer

This commit is contained in:
mMarinetti
2011-10-28 13:51:32 +00:00
parent 8b225a0b63
commit 2be4b67a71
3 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -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,
+5 -2
View File
@@ -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)
+2 -4
View File
@@ -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);