Merge "Use User->isRegistered(), not deprecated isLoggedIn()"
This commit is contained in:
commit
89e7ebc584
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue