// Refacto of CategoryController

This commit is contained in:
rMalie
2011-09-29 16:31:32 +00:00
parent 2ccb613174
commit 12ecd22c7c
5 changed files with 112 additions and 93 deletions
+3 -3
View File
@@ -372,6 +372,9 @@ class FrontControllerCore extends Controller
public function display()
{
Tools::safePostVars();
$this->context->smarty->assign('errors', $this->errors);
if ($this->displayHeader)
$this->context->smarty->display(_PS_THEME_DIR_.'header.tpl');
@@ -514,9 +517,6 @@ class FrontControllerCore extends Controller
// P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies)
header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');
Tools::safePostVars();
$this->context->smarty->assign('errors', $this->errors);
/* Hooks are volontary out the initialize array (need those variables already assigned) */
$this->context->smarty->assign(array(
'time' => time(),