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

Bug: T270450
Change-Id: Ie10652c4d9831f5582a027c7dc9cf1b1ddfc481b
This commit is contained in:
James D. Forrester 2020-12-17 18:26:35 -08:00
parent 0362c363c1
commit 98797b5a03

View file

@ -62,7 +62,7 @@ class MultimediaViewerHooks {
$enableByDefaultForAnons = $wgMediaViewerEnableByDefaultForAnonymous;
}
if ( !$user->isLoggedIn() ) {
if ( !$user->isRegistered() ) {
return (bool)$enableByDefaultForAnons;
} else {
return (bool)$user->getOption( 'multimediaviewer-enable' );