From f3a871ffee535bf869e5fd04a0c0c3ce4e41bbee Mon Sep 17 00:00:00 2001 From: dMetzger Date: Mon, 9 Jul 2012 12:56:51 +0000 Subject: [PATCH] [-] BO : you do not need to add the admin controller in the core, the override directory is enough --- classes/Dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Dispatcher.php b/classes/Dispatcher.php index ff1f2a2a6..e97cb99c9 100644 --- a/classes/Dispatcher.php +++ b/classes/Dispatcher.php @@ -305,7 +305,7 @@ class DispatcherCore } else { - $controllers = Dispatcher::getControllers(array(_PS_ADMIN_DIR_.'/tabs/', _PS_ADMIN_CONTROLLER_DIR_)); + $controllers = Dispatcher::getControllers(array(_PS_ADMIN_DIR_.'/tabs/', _PS_ADMIN_CONTROLLER_DIR_, _PS_OVERRIDE_DIR_.'controllers/admin/')); if (!isset($controllers[$this->controller])) $this->controller = $this->controller_not_found; $controller_class = $controllers[$this->controller];