[-] BO : you do not need to add the admin controller in the core, the override directory is enough
This commit is contained in:
@@ -305,7 +305,7 @@ class DispatcherCore
|
|||||||
}
|
}
|
||||||
else
|
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]))
|
if (!isset($controllers[$this->controller]))
|
||||||
$this->controller = $this->controller_not_found;
|
$this->controller = $this->controller_not_found;
|
||||||
$controller_class = $controllers[$this->controller];
|
$controller_class = $controllers[$this->controller];
|
||||||
|
|||||||
Reference in New Issue
Block a user