From f6ddf76ce87ef507d3b0b8a5b0a309ef441a8f83 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Wed, 28 Dec 2011 22:29:07 +0000 Subject: [PATCH] Removing wgLegacyJavaScriptGlobals from JavaScript output * PHP config variable itself is still needed for sure, but not needed in JavaScript output. Did get into 1.18 (accidentally added to js output as part of r87856) but undocumented and unannounced. --- includes/resourceloader/ResourceLoaderStartUpModule.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index d92e8c395b..8f53ee20f6 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -38,7 +38,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { $wgVariantArticlePath, $wgActionPaths, $wgUseAjax, $wgVersion, $wgEnableAPI, $wgEnableWriteAPI, $wgDBname, $wgEnableMWSuggest, $wgSitename, $wgFileExtensions, $wgExtensionAssetsPath, - $wgCookiePrefix, $wgResourceLoaderMaxQueryLength, $wgLegacyJavaScriptGlobals; + $wgCookiePrefix, $wgResourceLoaderMaxQueryLength; $mainPage = Title::newMainPage(); @@ -92,7 +92,6 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { // MediaWiki sets cookies to have this prefix by default 'wgCookiePrefix' => $wgCookiePrefix, 'wgResourceLoaderMaxQueryLength' => $wgResourceLoaderMaxQueryLength, - 'wgLegacyJavaScriptGlobals' => $wgLegacyJavaScriptGlobals, 'wgCaseSensitiveNamespaces' => $caseSensitiveNamespaces, ); if ( $wgUseAjax && $wgEnableMWSuggest ) { -- 2.20.1