diff options
Diffstat (limited to 'app/Core/Router.php')
-rw-r--r-- | app/Core/Router.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Core/Router.php b/app/Core/Router.php index 55ebe4a8..8f366daf 100644 --- a/app/Core/Router.php +++ b/app/Core/Router.php @@ -1,6 +1,6 @@ <?php -namespace Core; +namespace Kanboard\Core; /** * Router class @@ -219,7 +219,8 @@ class Router extends Base $plugin = ''; } - $class = empty($plugin) ? '\Controller\\'.ucfirst($this->controller) : '\Plugin\\'.ucfirst($plugin).'\Controller\\'.ucfirst($this->controller); + $class = '\Kanboard\\'; + $class .= empty($plugin) ? 'Controller\\'.ucfirst($this->controller) : 'Plugin\\'.ucfirst($plugin).'\Controller\\'.ucfirst($this->controller); $instance = new $class($this->container); $instance->beforeAction($this->controller, $this->action); |