jenkins-bot has submitted this change and it was merged.

Change subject: Enable experiments for anons
......................................................................


Enable experiments for anons

Needed by Gather.

Change-Id: I8e59c542f9397bcbaadea9c2c7917e5dec60860e
---
M includes/MobileFrontend.hooks.php
M includes/skins/SkinMinerva.php
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Florianschmidtwelzow: Looks good to me, but someone else must approve
  Jdlrobson: Looks good to me, approved
  Phuedx: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index c186f7a..c8696f1 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -350,7 +350,7 @@
        /**
         * ResourceLoaderGetConfigVars hook handler
         * This should be used for variables which vary with the html
-        * and for variables this should work cross skin
+        * and for variables this should work cross skin including anonymous 
users
         * @see 
https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderGetConfigVars
         *
         * @param array $vars
@@ -363,6 +363,7 @@
                // Get the licensing agreement that is displayed in the 
uploading interface.
                $wgMFUploadLicense = SkinMinerva::getLicense( 'upload' );
                $vars += array(
+                       'wgMFExperiments' => $config->get( 'MFExperiments' ),
                        'wgMFNearbyEndpoint' => $config->get( 
'MFNearbyEndpoint' ),
                        'wgMFThumbnailSizes' => array(
                                'tiny' =>  MobilePage::TINY_IMAGE_WIDTH,
diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index 8a16858..fa36f2c 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -918,7 +918,6 @@
                                );
                        }
                        $vars['wgMFUserBlockInfo'] = $blockInfo;
-                       $vars['wgMFExperiments'] = $config->get( 
'MFExperiments' );
                }
 
                $vars['wgMFShowRedLinks'] = $user->isLoggedIn()

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8e59c542f9397bcbaadea9c2c7917e5dec60860e
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Bmansurov <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Phuedx <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to