[*] 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
@@ -64,6 +64,8 @@ abstract class ModuleAdminControllerCore extends AdminController
|
||||
*/
|
||||
public function getTemplatePath()
|
||||
{
|
||||
if (file_exists(_PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/admin/'.$template))
|
||||
return _PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/admin/'.$template;
|
||||
return _PS_MODULE_DIR_.$this->module->name.'/views/templates/admin/';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user