[*] MO : Templates overrides works with the new structure (/views/templates/admin|front|hook)

This commit is contained in:
Francois Gaillard
2013-08-01 19:10:25 +02:00
parent ac48c1b786
commit 28de7890d2
3 changed files with 11 additions and 2 deletions

View File

@@ -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/';
}
}