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

Bug: T270450
Change-Id: I1018c6a76af5685026d956f5c010b5537cf3011e
This commit is contained in:
ZabeMath 2021-05-06 17:57:17 +02:00
parent e5d96719d8
commit bb3429ecff
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 );