Merge pull request #5 from PrestaShop/fix/better-template-call

Call templates with nice fetch method
This commit is contained in:
Maxime Biloé
2016-09-29 09:39:01 +02:00
committed by GitHub
+2 -1
View File
@@ -1422,6 +1422,7 @@ class Ps_MainMenu extends Module implements WidgetInterface
$this->smarty->assign([ $this->smarty->assign([
'menu' => $this->getWidgetVariables($hookName, $configuration) 'menu' => $this->getWidgetVariables($hookName, $configuration)
]); ]);
return $this->display(__FILE__, 'ps_mainmenu.tpl');
return $this->fetch('module:ps_mainmenu/ps_mainmenu.tpl');
} }
} }