Removing wgLegacyJavaScriptGlobals from JavaScript output
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 28 Dec 2011 22:29:07 +0000 (22:29 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 28 Dec 2011 22:29:07 +0000 (22:29 +0000)
* 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

index d92e8c3..8f53ee2 100644 (file)
@@ -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 ) {