jenkins-bot has submitted this change and it was merged.
Change subject: grrr
......................................................................
grrr
Change-Id: If90cf0699e9ca4f426ba8908428e7d29f1cb7389
---
M wmf-config/mobile.php
1 file changed, 7 insertions(+), 6 deletions(-)
Approvals:
MaxSem: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 8859c30..231ff4f 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -120,12 +120,13 @@
function wmfSetupMobileLoadScript() {
global $wgDBname, $wgLoadScript;
- if ( MobileContext::singleton()->shouldDisplayMobileView()
- if ( $wgDBname === 'testwiki' ) {
- // testwiki's resources aren't loaded from bits, it
just needs a mobile domain
- $wgLoadScript = '//test.m.wikipedia.org/w/load.php';
- } else {
- $wgLoadScript = str_replace( 'bits.wikimedia.org/',
'bits.wikimedia.org/m/', $wgLoadScript );
+ if ( MobileContext::singleton()->shouldDisplayMobileView() ) {
+ if ( $wgDBname === 'testwiki' ) {
+ // testwiki's resources aren't loaded from
bits, it just needs a mobile domain
+ $wgLoadScript =
'//test.m.wikipedia.org/w/load.php';
+ } else {
+ $wgLoadScript = str_replace(
'bits.wikimedia.org/', 'bits.wikimedia.org/m/', $wgLoadScript );
+ }
}
}
--
To view, visit https://gerrit.wikimedia.org/r/59811
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If90cf0699e9ca4f426ba8908428e7d29f1cb7389
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits