jenkins-bot has submitted this change and it was merged.
Change subject: Set $wgResourceBasePath to "/w" for group0 wikis
......................................................................
Set $wgResourceBasePath to "/w" for group0 wikis
* Requires I1860061a6 (adds /w/static.php).
* Requires I7653de247 (Apache config).
Bug: T99096
Change-Id: I0d61c89d7ed078e4959f80ebec37688882f74588
---
M wmf-config/CommonSettings.php
1 file changed, 6 insertions(+), 1 deletion(-)
Approvals:
Krinkle: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 8bb30a1..e46513a 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -232,7 +232,12 @@
// - Goes wrong otherwise on mobile web (T106966, T112646)
// - Improves performance by leveraging HTTP/2
// - $wgLocalStylePath MUST be relative
-$wgResourceBasePath = "/static/{$wmgVersionNumber}";
+if ( in_array( $wgDBname, array( 'testwiki', 'test2wiki', 'mediawikiwiki' ) )
) {
+ // Routed by Apache rewrite to /w/static.php (T99096)
+ $wgResourceBasePath = '/w';
+} else {
+ $wgResourceBasePath = "/static/{$wmgVersionNumber}";
+}
$wgExtensionAssetsPath = "{$wgResourceBasePath}/extensions";
$wgStylePath = "{$wgResourceBasePath}/skins";
$wgLocalStylePath = $wgStylePath;
--
To view, visit https://gerrit.wikimedia.org/r/268715
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0d61c89d7ed078e4959f80ebec37688882f74588
Gerrit-PatchSet: 9
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits