Brion VIBBER has uploaded a new change for review.

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

Change subject: Add parser cache hash key for $wgMFStripResponsiveImages state
......................................................................

Add parser cache hash key for $wgMFStripResponsiveImages state

Prevents leakage of mobile- and desktop-specific renderings into
each other when $wgMFStripResponsiveImages is true (the default).

The hash key '!responsiveimages=0' is chosen to match the currently
used production configuration hack on Wikimedia servers.

Change-Id: Id04e50d8dfcbb45b5d2c5655098714dd05d32e65
---
M includes/MobileFrontend.hooks.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/94/287794/1

diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index 92cc95c..846b9ea 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -383,6 +383,10 @@
                        return;
                }
 
+               if ( $context->getMFConfig()->get( 'MFStripResponsiveImages' ) 
) {
+                       $confstr .= '!responsiveimages=0';
+               }
+
                if ( $context->isLazyLoadImagesEnabled() ) {
                        $confstr .= '!lazyloadimages';
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id04e50d8dfcbb45b5d2c5655098714dd05d32e65
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>

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

Reply via email to