MaxSem has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71381
Change subject: Alternative way of setting resource paths
......................................................................
Alternative way of setting resource paths
To cater for the need to have a title at that point which is not the case
for $wgExtensionFunctions.
Change-Id: Ibac6da6903681b088a31c9e3e414e13b504d6c33
---
M wmf-config/mobile.php
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/81/71381/1
diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 38672e3..c1b3303 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -44,7 +44,14 @@
// looking for X-WAP headers in requests coming from Squid
if ( $wmgMFVaryResources ) {
$wgMFVaryResources = true;
- $wgExtensionFunctions[] = 'wmfSetupMobileLoadScript';
+ if ( $wmfRealm === 'production' ) {
+ $wgExtensionFunctions[] = 'wmfSetupMobileLoadScript';
+ } else {
+ $wgHooks['BeforeInitialize'] =
$wgHooks['ResourceLoaderRegisterModules'= function() {
+ wmfSetupMobileLoadScript();
+ return true;
+ }
+ }
}
}
--
To view, visit https://gerrit.wikimedia.org/r/71381
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibac6da6903681b088a31c9e3e414e13b504d6c33
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits