// fix ajax-tab

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10195 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-11-17 09:03:42 +00:00
parent 41b256f637
commit fe5fe7f3db
2 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -998,12 +998,16 @@ class AdminControllerCore extends Controller
$this->context->smarty->assign('content', $this->context->smarty->fetch($tpl_action));
}
// Check if content template has been override
if (file_exists($this->context->smarty->template_dir[0].'/'.$tpl))
$page = $this->context->smarty->fetch($tpl);
if (!$this->ajax)
{
// Check if content template has been override
if (file_exists($this->context->smarty->template_dir[0].'/'.$tpl))
$page = $this->context->smarty->fetch($tpl);
else
$page = $this->context->smarty->fetch($this->template);
}
else
$page = $this->context->smarty->fetch($this->template);
$page = $this->content;
if ($conf = Tools::getValue('conf'))
$this->context->smarty->assign('conf', $this->_conf[(int)$conf]);