Arseny1992 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/316706

Change subject: Update for $wgMediaViewerEnableByDefault
......................................................................

Update for $wgMediaViewerEnableByDefault

To be consistent with $wgDefaultUserOptions logic

Migration of bugzilla bug id to maniphest

Bug: T148492
Change-Id: Ie371a0c2445c9aededb5c9e26018d19cbd616358
---
M MultimediaViewerHooks.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultimediaViewer 
refs/changes/06/316706/1

diff --git a/MultimediaViewerHooks.php b/MultimediaViewerHooks.php
index d27a3c7..13f8ae7 100644
--- a/MultimediaViewerHooks.php
+++ b/MultimediaViewerHooks.php
@@ -154,7 +154,7 @@
                }
 
                if ( $wgMediaViewerEnableByDefault ) {
-                       $wgDefaultUserOptions['multimediaviewer-enable'] = true;
+                       $wgDefaultUserOptions['multimediaviewer-enable'] = 1;
                }
        }
 
@@ -321,7 +321,7 @@
 
                $user = $out->getUser();
                $vars['wgMediaViewerOnClick'] = self::shouldHandleClicks( $user 
);
-               // needed because of bug 69942; could be different for anon and 
logged-in
+               // needed because of bug T71942; could be different for anon 
and logged-in
                $vars['wgMediaViewerEnabledByDefault'] = !empty( 
$wgDefaultUserOptions['multimediaviewer-enable'] );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/316706
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie371a0c2445c9aededb5c9e26018d19cbd616358
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MultimediaViewer
Gerrit-Branch: master
Gerrit-Owner: Arseny1992 <arsen...@windowslive.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to