From 95a735c1f9bb2220e9fb6902505949ffafc58a4b Mon Sep 17 00:00:00 2001 From: Julien Bourdeau Date: Mon, 26 Sep 2016 15:59:05 +0200 Subject: [PATCH] FO: Call template with nice fetch method --- ps_mainmenu.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ps_mainmenu.php b/ps_mainmenu.php index dc8e741..15f0462 100644 --- a/ps_mainmenu.php +++ b/ps_mainmenu.php @@ -1422,6 +1422,7 @@ class Ps_MainMenu extends Module implements WidgetInterface $this->smarty->assign([ 'menu' => $this->getWidgetVariables($hookName, $configuration) ]); - return $this->display(__FILE__, 'ps_mainmenu.tpl'); + + return $this->fetch('module:ps_mainmenu/ps_mainmenu.tpl'); } }