From: Krinkle Date: Wed, 28 Dec 2011 22:29:07 +0000 (+0000) Subject: Removing wgLegacyJavaScriptGlobals from JavaScript output X-Git-Tag: 1.31.0-rc.0~25694 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=f6ddf76ce87ef507d3b0b8a5b0a309ef441a8f83;p=lhc%2Fweb%2Fwiklou.git 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. --- 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 ) {