[*] MO : Templates overrides works with the new structure (/views/templates/admin|front|hook)
This commit is contained in:
@@ -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