/**
* A filter for updating the user account status to confirmed
*
- * @author Roland Haeder <webmaster@ship-simu.org>
+ * @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team
* @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
+ * @link http://www.shipsimu.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createUserStatusConfimedUpdateFilter () {
+ public static final function createUserStatusConfimedUpdateFilter () {
// Get a new instance
$filterInstance = new UserStatusConfimedUpdateFilter();
$userInstance = Registry::getRegistry()->getInstance('user');
// Get "confirmed" status from config
- $confirmed = $this->getConfigInstance()->readConfig('user_status_confirmed');
+ $confirmed = $this->getConfigInstance()->getConfigEntry('user_status_confirmed');
// Update the user status to "confirmed" here
$userInstance->updateDatabaseField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS, $confirmed);
// Wipe out the confirm hash for extra security
- $userInstance->updateDatabaseField(UserDatabaseWrapper::DB_COLUMN_CONFIRM_HASH, "");
+ $userInstance->updateDatabaseField(UserDatabaseWrapper::DB_COLUMN_CONFIRM_HASH, '');
// Write all updates to the database
$userInstance->flushPendingUpdates();