// Retro-compatibility fix of front controllers
This commit is contained in:
@@ -80,6 +80,8 @@ class CmsControllerCore extends FrontController
|
||||
*/
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
|
||||
$parent_cat = new CMSCategory(1, $this->context->language->id);
|
||||
$this->context->smarty->assign('id_current_lang', $this->context->language->id);
|
||||
$this->context->smarty->assign('home_title', $parent_cat->name);
|
||||
@@ -107,6 +109,5 @@ class CmsControllerCore extends FrontController
|
||||
}
|
||||
|
||||
$this->setTemplate(_PS_THEME_DIR_.'cms.tpl');
|
||||
parent::initContent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user