// Retro-compatibility fix of front controllers
This commit is contained in:
@@ -42,6 +42,8 @@ class SitemapControllerCore extends FrontController
|
||||
*/
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
|
||||
$this->context->smarty->assign('categoriesTree', Category::getRootCategory()->recurseLiteCategTree(0));
|
||||
$this->context->smarty->assign('categoriescmsTree', CMSCategory::getRecurseCategory($this->context->language->id, 1, 1, 1));
|
||||
$this->context->smarty->assign('voucherAllowed', (int)Configuration::get('PS_VOUCHERS'));
|
||||
@@ -54,6 +56,5 @@ class SitemapControllerCore extends FrontController
|
||||
$this->context->smarty->assign('display_store', Configuration::get('PS_STORES_DISPLAY_SITEMAP'));
|
||||
|
||||
$this->setTemplate(_PS_THEME_DIR_.'sitemap.tpl');
|
||||
parent::initContent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user