Jforrester has uploaded a new change for review.
https://gerrit.wikimedia.org/r/277823
Change subject: Disable wgIncludeLegacyJavaScript on all sites
......................................................................
Disable wgIncludeLegacyJavaScript on all sites
About to be set in core.
Change-Id: Id323d2129c2d9aa221700590f8b7eec657750f5f
---
M wmf-config/CommonSettings.php
M wmf-config/mobile.php
2 files changed, 2 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/23/277823/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 6ea652f..06c8e17 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -251,7 +251,7 @@
$wgStyleSheetPath = $wgStylePath;
// Deprecated
-$wgIncludeLegacyJavaScript = true;
+$wgIncludeLegacyJavaScript = false;
if ( gethostname() === 'osmium' ) {
$wgResourceLoaderStorageEnabled = false;
diff --git a/wmf-config/mobile.php b/wmf-config/mobile.php
index 1669004..4654473 100644
--- a/wmf-config/mobile.php
+++ b/wmf-config/mobile.php
@@ -66,11 +66,7 @@
$wgMFNoMobilePages = $wmgMFNoMobilePages;
$wgHooks['EnterMobileMode'][] = function() {
- global $wgCentralAuthCookieDomain, $wgHooks,
$wgResponsiveImages, $wgRenderHashAppend,
- $wgIncludeLegacyJavaScript;
-
- // Disable loading of legacy wikibits in the mobile web
experience
- $wgIncludeLegacyJavaScript = false;
+ global $wgCentralAuthCookieDomain, $wgHooks,
$wgResponsiveImages, $wgRenderHashAppend;
// Disable responsive images on mobile web (T119797), but not
on apps.
if ( !defined( 'MW_API' ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/277823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id323d2129c2d9aa221700590f8b7eec657750f5f
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits