Merge pull request #5 from PrestaShop/fix/better-template-call
Call templates with nice fetch method
This commit is contained in:
+2
-1
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user