Remove wgProto from mw.config
authorKrinkle <krinkle@users.mediawiki.org>
Fri, 9 Sep 2011 01:03:27 +0000 (01:03 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Fri, 9 Sep 2011 01:03:27 +0000 (01:03 +0000)
* Introduced in r82575 spontaneously, but was never used.
* It was removed from PHP by Tim in r90193, who gracefully kept a work-around in place to still have a protocol available in mw.config.
* Since it was new in JS in 1.18 (which hasn't been released yet), I suggest we take it out right away, especially because the PHP counterpart has been deprecated as well. No release notes needed.

includes/resourceloader/ResourceLoaderStartUpModule.php

index 436a569..40786fa 100644 (file)
@@ -69,10 +69,6 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
                        }
                }
 
-
-               $serverBits = wfParseUrl( $wgServer );
-               $protocol = $serverBits ? $serverBits['scheme'] : 'http';
-
                // Build list of variables
                $vars = array(
                        'wgLoadScript' => $wgLoadScript,
@@ -108,7 +104,6 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
                        'wgFileCanRotate' => BitmapHandler::canRotate(),
                        'wgAvailableSkins' => Skin::getSkinNames(),
                        'wgExtensionAssetsPath' => $wgExtensionAssetsPath,
-                       'wgProto' => $protocol,
                        // MediaWiki sets cookies to have this prefix by default
                        'wgCookiePrefix' => $wgCookiePrefix,
                        'wgResourceLoaderMaxQueryLength' => $wgResourceLoaderMaxQueryLength,