// Change module admin controllers path.

This commit is contained in:
jBreux
2012-01-24 16:08:52 +00:00
parent f2345dfa75
commit c162d54b2f
+6 -4
View File
@@ -245,15 +245,17 @@ class DispatcherCore
*/ */
public static function includeModuleClass($module, $name) public static function includeModuleClass($module, $name)
{ {
if (file_exists(_PS_MODULE_DIR_.$module.'/'.$name.'Controller.php')) $file = _PS_MODULE_DIR_.$module.'/controllers/admin/'.$name.'Controller.php';
if (file_exists($file))
{ {
include(_PS_MODULE_DIR_.$module.'/'.$name.'Controller.php'); include($file);
return 'controller'; return 'controller';
} }
if (file_exists(_PS_MODULE_DIR_.$module.'/'.$name.'.php')) $file = _PS_MODULE_DIR_.$module.'/'.$name.'.php';
if (file_exists($file))
{ {
include(_PS_MODULE_DIR_.$module.'/'.$name.'.php'); include($file);
return 'tab'; return 'tab';
} }
return false; return false;