From 01a1cadf5bed5317e045c3483fd0bdfe6e5ed492 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 9 Apr 2016 10:42:22 +0200 Subject: [PATCH] Fixing remaining bugs for route-restructure --- Admin/Installer.php | 2 ++ Admin/Routes/http.php | 2 ++ Controller.php | 2 +- Theme/Backend/Lang/Navigation.en.lang.php | 4 ++-- Theme/backend/Lang/Navigation.en.lang.php | 4 ++-- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index b0dbc64..cfc5cbd 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -14,7 +14,9 @@ * @link http://orange-management.com */ namespace Modules\Dashboard\Admin; + use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InfoManager; /** * Dashboard install class. diff --git a/Admin/Routes/http.php b/Admin/Routes/http.php index 33d83bb..410dbac 100644 --- a/Admin/Routes/http.php +++ b/Admin/Routes/http.php @@ -1,5 +1,7 @@ [ [ diff --git a/Controller.php b/Controller.php index e7ed8f1..5bb98f8 100644 --- a/Controller.php +++ b/Controller.php @@ -90,7 +90,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Dashboard/Theme/Backend/dashboard'); diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index d6d8253..39dd277 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -13,8 +13,8 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Navigation'] = [ +return ['Navigation' => [ 'Dashboard' => 'Dashboard', 'Home' => 'Home', 'Logout' => 'Logout', -]; +]]; diff --git a/Theme/backend/Lang/Navigation.en.lang.php b/Theme/backend/Lang/Navigation.en.lang.php index d6d8253..39dd277 100644 --- a/Theme/backend/Lang/Navigation.en.lang.php +++ b/Theme/backend/Lang/Navigation.en.lang.php @@ -13,8 +13,8 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Navigation'] = [ +return ['Navigation' => [ 'Dashboard' => 'Dashboard', 'Home' => 'Home', 'Logout' => 'Logout', -]; +]];