X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffilter%2Fguest%2Fclass_UserNameIsGuestFilter.php;h=452c44476f277367d43deb597d3681d2ceb597dd;hp=f6b6e62602a8ec04d52bedfa391a5ebf106b8fae;hb=607a11e2c22949ea0647568c17d62a605595e83b;hpb=361e6320e50a8bb1a3ccb675388b8042361669ae diff --git a/inc/classes/main/filter/guest/class_UserNameIsGuestFilter.php b/inc/classes/main/filter/guest/class_UserNameIsGuestFilter.php index f6b6e626..452c4447 100644 --- a/inc/classes/main/filter/guest/class_UserNameIsGuestFilter.php +++ b/inc/classes/main/filter/guest/class_UserNameIsGuestFilter.php @@ -5,7 +5,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -38,7 +38,7 @@ class UserNameIsGuestFilter extends BaseFilter implements Filterable { * * @return $filterInstance An instance of this filter class */ - public final static function createUserNameIsGuestFilter () { + public static final function createUserNameIsGuestFilter () { // Get a new instance $filterInstance = new UserNameIsGuestFilter(); @@ -58,10 +58,10 @@ class UserNameIsGuestFilter extends BaseFilter implements Filterable { $userName = $requestInstance->getRequestElement('username'); // Does the user name match the guest login? - if ($userName == $this->getConfigInstance()->readConfig('guest_login_user')) { + if ($userName == $this->getConfigInstance()->getConfigEntry('guest_login_user')) { // Then set the password to the configured password - $requestInstance->setRequestElement('pass1', $this->getConfigInstance()->readConfig('guest_login_passwd')); - $requestInstance->setRequestElement('pass2', $this->getConfigInstance()->readConfig('guest_login_passwd')); + $requestInstance->setRequestElement('pass1', $this->getConfigInstance()->getConfigEntry('guest_login_passwd')); + $requestInstance->setRequestElement('pass2', $this->getConfigInstance()->getConfigEntry('guest_login_passwd')); } // END - if } }