[*] MO : Templates overrides works with the new structure (/views/templates/admin|front|hook)
This commit is contained in:
1 parent
ac48c1b786
commit
28de7890d2
3 files changed
+11
-2
No files matched your search
@@ -68,6 +68,8 @@ class ModuleFrontControllerCore extends FrontController
|
||||
*/
|
||||
public function getTemplatePath()
|
||||
{
|
||||
if (file_exists(_PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/front/'.$template))
|
||||
return _PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/front/'.$template;
|
||||
return _PS_MODULE_DIR_.$this->module->name.'/views/templates/front/';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user