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')))