move configuration ?registration_host? to ?app? section

This commit is contained in:
oliver 2015-04-08 12:37:49 +02:00
commit c1d75e8f83
2 changed files with 7 additions and 7 deletions

View file

@ -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' => ' ',

View file

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