// Variables name fixed
This commit is contained in:
1 parent
b51d4f4c7d
commit
268b3c6bda
2 files changed
+4
-4
No files matched your search
@@ -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/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user