Use User->isRegistered(), not deprecated isLoggedIn()
Bug: T270450 Change-Id: I1018c6a76af5685026d956f5c010b5537cf3011e
This commit is contained in:
parent
e5d96719d8
commit
bb3429ecff
2 changed files with 2 additions and 2 deletions
|
@ -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
Add a link
Reference in a new issue