From 9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 13 Oct 2015 22:19:17 -0400 Subject: Change namespace to add Kanboard as prefix --- app/Core/Router.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Core/Router.php') 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 @@ 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); -- cgit v1.2.3