X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffilter%2Fguest%2Fclass_UserNameIsGuestFilter.php;h=788d4362de8ad84f761a03d254ed243107e99987;hb=HEAD;hp=3a2c21cf97aaca91b46beb8f57d2b486a049e30e;hpb=cad1ab5ecb2935a6ebf678555860c3bd96b525b0;p=core.git diff --git a/framework/main/classes/filter/guest/class_UserNameIsGuestFilter.php b/framework/main/classes/filter/guest/class_UserNameIsGuestFilter.php index 3a2c21cf..d05523f1 100644 --- a/framework/main/classes/filter/guest/class_UserNameIsGuestFilter.php +++ b/framework/main/classes/filter/guest/class_UserNameIsGuestFilter.php @@ -3,6 +3,7 @@ namespace Org\Mxchange\CoreFramework\Filter\User\Username; // Import framework stuff +use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap; use Org\Mxchange\CoreFramework\Filter\BaseFilter; use Org\Mxchange\CoreFramework\Filter\Filterable; use Org\Mxchange\CoreFramework\Request\Requestable; @@ -14,11 +15,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable; * * @author Roland Haeder * @version 0.0.0 -<<<<<<< HEAD:framework/main/classes/filter/guest/class_UserNameIsGuestFilter.php - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team -======= - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team ->>>>>>> Some updates::inc/main/classes/filter/guest/class_UserNameIsGuestFilter.php + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -41,7 +38,7 @@ class UserNameIsGuestFilter extends BaseFilter implements Filterable { * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -71,11 +68,11 @@ class UserNameIsGuestFilter extends BaseFilter implements Filterable { $userName = $requestInstance->getRequestElement('username'); // Does the user name match the guest login? - if ($userName == $this->getConfigInstance()->getConfigEntry('guest_login_user')) { + if ($userName == FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('guest_login_user')) { // Then set the password to the configured password - $requestInstance->setRequestElement('pass1', $this->getConfigInstance()->getConfigEntry('guest_login_passwd')); - $requestInstance->setRequestElement('pass2', $this->getConfigInstance()->getConfigEntry('guest_login_passwd')); - } // END - if + $requestInstance->setRequestElement('pass1', FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('guest_login_passwd')); + $requestInstance->setRequestElement('pass2', FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('guest_login_passwd')); + } } }