jenkins-bot has submitted this change and it was merged. 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. So far, only testing it on mediawiki.org Change-Id: I73892176285f09b56f6f79266b24eeb3d13b7fe4 --- M wmf-config/mobile.php 1 file changed, 8 insertions(+), 1 deletion(-) Approvals: MaxSem: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php index 38672e3..974c2d7 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 ( $wgDBname === 'mediawikiwiki' ) { + $wgHooks['BeforeInitialize'][] = $wgHooks['ResourceLoaderRegisterModules'][] = function() { + wmfSetupMobileLoadScript(); + return true; + }; + } else { + $wgExtensionFunctions[] = 'wmfSetupMobileLoadScript'; + } } } -- To view, visit https://gerrit.wikimedia.org/r/71593 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I73892176285f09b56f6f79266b24eeb3d13b7fe4 Gerrit-PatchSet: 2 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: MaxSem <maxsem.w...@gmail.com> Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits