From b6d6ea716e95caf18aa17fb55aa571a6909509dc 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 | 1 + Admin/Routes/http.php | 2 ++ Controller.php | 4 ++-- Theme/Backend/Lang/en.lang.php | 4 ++-- Theme/backend/Lang/Navigation.en.lang.php | 4 ++-- Theme/backend/Lang/en.lang.php | 4 ++-- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 42a43f7..2b54217 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -17,6 +17,7 @@ namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabaseType; use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InfoManager; use phpOMS\Module\InstallerAbstract; /** diff --git a/Admin/Routes/http.php b/Admin/Routes/http.php index 73cf712..e836bc8 100644 --- a/Admin/Routes/http.php +++ b/Admin/Routes/http.php @@ -1,5 +1,7 @@ [ [ diff --git a/Controller.php b/Controller.php index 405479f..9d8aaa7 100644 --- a/Controller.php +++ b/Controller.php @@ -89,7 +89,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewProfileList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewProfileList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Profile/Theme/Backend/profile-list'); @@ -111,7 +111,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewProfileSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewProfileSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Profile/Theme/Backend/profile-single'); diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 3359ace..3f7ecc5 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Profile'] = [ +return ['Profile' => [ 'Activity' => 'Activity', 'Birthday' => 'Birthday', 'ContactInformation' => 'Contact Information', @@ -31,4 +31,4 @@ $MODLANG['Profile'] = [ 'Registered' => 'Registered', 'Skype' => 'Skype', 'Status' => 'Status', -]; +]]; diff --git a/Theme/backend/Lang/Navigation.en.lang.php b/Theme/backend/Lang/Navigation.en.lang.php index 673a051..a5a347a 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' => [ 'List' => 'List', 'Profile' => 'Profile', 'Profiles' => 'Profiles', -]; +]]; diff --git a/Theme/backend/Lang/en.lang.php b/Theme/backend/Lang/en.lang.php index 3359ace..3f7ecc5 100644 --- a/Theme/backend/Lang/en.lang.php +++ b/Theme/backend/Lang/en.lang.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Profile'] = [ +return ['Profile' => [ 'Activity' => 'Activity', 'Birthday' => 'Birthday', 'ContactInformation' => 'Contact Information', @@ -31,4 +31,4 @@ $MODLANG['Profile'] = [ 'Registered' => 'Registered', 'Skype' => 'Skype', 'Status' => 'Status', -]; +]];