// Change module admin controllers path.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12650 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
043ed8c17b
commit
1103425e04
1 file changed
+6
-4
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user