// Fix output for ajax content
This commit is contained in:
1 parent
dc06ef9c6d
commit
2a984186a9
1 file changed
+5
-1
@@ -1332,7 +1332,11 @@ class AdminControllerCore extends Controller
|
|||||||
$this->context->smarty->assign($type, $this->json ? Tools::jsonEncode(array_unique($this->$type)) : array_unique($this->$type));
|
$this->context->smarty->assign($type, $this->json ? Tools::jsonEncode(array_unique($this->$type)) : array_unique($this->$type));
|
||||||
|
|
||||||
$this->context->smarty->assign('page', $this->json ? Tools::jsonEncode($page) : $page);
|
$this->context->smarty->assign('page', $this->json ? Tools::jsonEncode($page) : $page);
|
||||||
$this->smartyOutputContent(array($header_tpl, $this->layout, $footer_tpl));
|
|
||||||
|
if (!$this->ajax)
|
||||||
|
$this->smartyOutputContent(array($header_tpl, $this->layout, $footer_tpl));
|
||||||
|
else
|
||||||
|
$this->smartyOutputContent($this->layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user