git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8743 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-09-23 15:05:48 +00:00
parent 926063e08f
commit b00ad8249d
+3 -3
View File
@@ -135,8 +135,8 @@ class AdminControllerCore extends Controller
public function display()
{
if(!empty($this->content))
$this->assign('content', $this->content);
if (empty($this->template) or $this->template == 'content.tpl')
$this->context->smarty->assign('content', $this->content);
if (empty($this->template))
{
$default_tpl = substr(lcfirst(get_class($this)),0,-10).'.tpl';
if (file_exists($this->context->smarty->template_dir.'/'.$default_tpl))
@@ -144,7 +144,7 @@ class AdminControllerCore extends Controller
$this->template = $default_tpl;
}
else
return $this->displayNoSmarty();
$this->template = 'content.tpl';
}
else
$this->content = $this->context->smarty->fetch($this->template);