MaxSem has uploaded a new change for review.

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


Change subject: Direct mobile banner requests to mobile site
......................................................................

Direct mobile banner requests to mobile site

Change-Id: Iec97843fc60004533b42e57b2a0fc5a3a85df711
---
M wmf-config/mobile.php
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/97/60597/1

diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 39ae0e1..3d1a1b9 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -201,4 +201,11 @@
 // Enable X-Analytics logging
 $wgMFEnableXAnalyticsLogging = $wmgMFEnableXAnalyticsLogging;
 
-$wgMFEnableSiteNotice = $wmgMFEnableSiteNotice;
\ No newline at end of file
+$wgMFEnableSiteNotice = $wmgMFEnableSiteNotice;
+
+// Hack to work around https://bugzilla.wikimedia.org/show_bug.cgi?id=35215
+$wgHooks['EnterMobileMode'][] = function() {
+       $wgCentralPagePath = str_replace( 'meta.wikimedia.org', 
'meta.m.wikimedia.org', $wgCentralPagePath );
+       $wgCentralBannerDispatcher = str_replace( 'meta.wikimedia.org', 
'meta.m.wikimedia.org', $wgCentralBannerDispatcher );
+       $wgCentralBannerRecorder = str_replace( 'meta.wikimedia.org', 
'meta.m.wikimedia.org', $wgCentralBannerRecorder );
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec97843fc60004533b42e57b2a0fc5a3a85df711
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>

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

Reply via email to