From: Reedy Date: Fri, 13 Sep 2019 17:44:11 +0000 (+0100) Subject: user: Use cached singleton instance variable X-Git-Tag: 1.34.0-rc.0~231^2 X-Git-Url: http://git.cyclocoop.org/data/%27.find_in_path%28%27css/enluminurestypo.css%27%29.%27?a=commitdiff_plain;h=b2d2ba61eda64c4a30348d90a1c7168296518382;p=lhc%2Fweb%2Fwiklou.git user: Use cached singleton instance variable Remove unnecesary qualification (there's a use statement) Change-Id: I0c39e2086f38275db7912231f6ddbfa090f095d8 --- diff --git a/includes/user/User.php b/includes/user/User.php index d71750bcfd..6b3e3b2750 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -4320,13 +4320,13 @@ class User implements IDBAccessObject, UserIdentity { 'password' => $password, ] ); - $res = AuthManager::singleton()->beginAuthentication( $reqs, 'null:' ); + $res = $manager->beginAuthentication( $reqs, 'null:' ); switch ( $res->status ) { case AuthenticationResponse::PASS: return true; case AuthenticationResponse::FAIL: // Hope it's not a PreAuthenticationProvider that failed... - \MediaWiki\Logger\LoggerFactory::getInstance( 'authentication' ) + LoggerFactory::getInstance( 'authentication' ) ->info( __METHOD__ . ': Authentication failed: ' . $res->message->plain() ); return false; default: