Merge "Use User->isRegistered(), not deprecated isLoggedIn()"

This commit is contained in:
jenkins-bot 2021-05-11 14:08:12 +00:00 committed by Gerrit Code Review
commit 89e7ebc584
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"version": "1.26.0",
"type": "specialpage",
"requires": {
"MediaWiki": ">= 1.33.0"
"MediaWiki": ">= 1.34.0"
},
"SpecialPages": {
"ContributionScores": "ContributionScores"

View file

@ -33,7 +33,7 @@ class ContributionScores extends IncludableSpecialPage {
$user = User::newFromName( $usertext );
$dbr = wfGetDB( DB_REPLICA );
if ( $user instanceof User && $user->isLoggedIn() ) {
if ( $user instanceof User && $user->isRegistered() ) {
global $wgLang;
$revWhere = ActorMigration::newMigration()->getWhere( $dbr, 'rev_user', $user );