// Variables name fixed

This commit is contained in:
Francois Gaillard committed 2013-08-01 19:14:04 +02:00
1 parent b51d4f4c7d
commit 268b3c6bda
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -64,8 +64,8 @@ abstract class ModuleAdminControllerCore extends AdminController
*/ */
public function getTemplatePath() public function getTemplatePath()
{ {
if (file_exists(_PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/admin/'.$template)) if (file_exists(_PS_THEME_DIR_.'modules/'.$this->module->name.'/views/templates/admin/'.$template))
return _PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/admin/'.$template; return _PS_THEME_DIR_.'modules/'.$this->module->name.'/views/templates/admin/'.$template;
return _PS_MODULE_DIR_.$this->module->name.'/views/templates/admin/'; return _PS_MODULE_DIR_.$this->module->name.'/views/templates/admin/';
} }
} }
+2 -2
View File
@@ -68,8 +68,8 @@ class ModuleFrontControllerCore extends FrontController
*/ */
public function getTemplatePath() public function getTemplatePath()
{ {
if (file_exists(_PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/front/'.$template)) if (file_exists(_PS_THEME_DIR_.'modules/'.$this->module->name.'/views/templates/front/'.$template))
return _PS_THEME_DIR_.'modules/'.$this->name.'/views/templates/front/'.$template; return _PS_THEME_DIR_.'modules/'.$this->module->name.'/views/templates/front/'.$template;
return _PS_MODULE_DIR_.$this->module->name.'/views/templates/front/'; return _PS_MODULE_DIR_.$this->module->name.'/views/templates/front/';
} }
} }