Use User->isRegistered(), not deprecated isLoggedIn()
Bug: T270450 Change-Id: I1018c6a76af5685026d956f5c010b5537cf3011e
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"version": "1.26.0",
|
||||
"type": "specialpage",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.33.0"
|
||||
"MediaWiki": ">= 1.34.0"
|
||||
},
|
||||
"SpecialPages": {
|
||||
"ContributionScores": "ContributionScores"
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user