mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 00:03:56 +00:00
Use User->isRegistered(), not deprecated isLoggedIn()
Bug: T270450 Change-Id: Ie10652c4d9831f5582a027c7dc9cf1b1ddfc481b
This commit is contained in:
parent
0362c363c1
commit
98797b5a03
|
@ -62,7 +62,7 @@ class MultimediaViewerHooks {
|
|||
$enableByDefaultForAnons = $wgMediaViewerEnableByDefaultForAnonymous;
|
||||
}
|
||||
|
||||
if ( !$user->isLoggedIn() ) {
|
||||
if ( !$user->isRegistered() ) {
|
||||
return (bool)$enableByDefaultForAnons;
|
||||
} else {
|
||||
return (bool)$user->getOption( 'multimediaviewer-enable' );
|
||||
|
|
Loading…
Reference in a new issue