From c1d75e8f83b170513495bfce8c23fcd75cb4a5ce Mon Sep 17 00:00:00 2001 From: oliver Date: Wed, 8 Apr 2015 12:37:49 +0200 Subject: [PATCH] move configuration ?registration_host? to ?app? section --- configs/AppConfig.inc | 12 ++++++------ controllers/UsersController.inc | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configs/AppConfig.inc b/configs/AppConfig.inc index 484932c4..eec9e4e9 100644 --- a/configs/AppConfig.inc +++ b/configs/AppConfig.inc @@ -30,11 +30,12 @@ * @var array */ public static $app = array( - 'name' => 'Questlab', - 'genericname' => 'The Legend of Z', - 'namespace' => 'hhu\\z\\', - 'timeZone' => 'Europe/Berlin', - 'mailsender' => 'questlab@hhu.de' + 'name' => 'Questlab', + 'genericname' => 'The Legend of Z', + 'namespace' => 'hhu\\z\\', + 'timeZone' => 'Europe/Berlin', + 'mailsender' => 'questlab@hhu.de', + 'registration_host' => '' ); @@ -143,7 +144,6 @@ * @var array */ public static $misc = array( - 'registration_host' => '', 'ranking_range' => 2, 'achievements_range' => 3, 'title_delimiter' => ' – ', diff --git a/controllers/UsersController.inc b/controllers/UsersController.inc index 25db38bf..839a9d49 100644 --- a/controllers/UsersController.inc +++ b/controllers/UsersController.inc @@ -207,7 +207,7 @@ $fields = array('username', 'prename', 'surname', 'email', 'password'); $validation = array(); - $emailhost = \nre\configs\AppConfig::$misc['registration_host']; + $emailhost = \nre\configs\AppConfig::$app['registration_host']; // Register a new user if($this->request->getRequestMethod() == 'POST' && !is_null($this->request->getPostParam('register')))