diff --git a/includes/MultimediaViewerHooks.php b/includes/MultimediaViewerHooks.php index fc10e67e8..5c4cc1f1c 100644 --- a/includes/MultimediaViewerHooks.php +++ b/includes/MultimediaViewerHooks.php @@ -62,7 +62,7 @@ class MultimediaViewerHooks { $enableByDefaultForAnons = $wgMediaViewerEnableByDefaultForAnonymous; } - if ( !$user->isLoggedIn() ) { + if ( !$user->isRegistered() ) { return (bool)$enableByDefaultForAnons; } else { return (bool)$user->getOption( 'multimediaviewer-enable' );