http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96640

Revision: 96640
Author:   krinkle
Date:     2011-09-09 01:03:27 +0000 (Fri, 09 Sep 2011)
Log Message:
-----------
Remove wgProto from mw.config
* 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.

Modified Paths:
--------------
    trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php

Modified: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php
===================================================================
--- trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php        
2011-09-09 01:01:30 UTC (rev 96639)
+++ trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php        
2011-09-09 01:03:27 UTC (rev 96640)
@@ -69,10 +69,6 @@
                        }
                }
 
-
-               $serverBits = wfParseUrl( $wgServer );
-               $protocol = $serverBits ? $serverBits['scheme'] : 'http';
-
                // Build list of variables
                $vars = array(
                        'wgLoadScript' => $wgLoadScript,
@@ -108,7 +104,6 @@
                        'wgFileCanRotate' => BitmapHandler::canRotate(),
                        'wgAvailableSkins' => Skin::getSkinNames(),
                        'wgExtensionAssetsPath' => $wgExtensionAssetsPath,
-                       'wgProto' => $protocol,
                        // MediaWiki sets cookies to have this prefix by default
                        'wgCookiePrefix' => $wgCookiePrefix,
                        'wgResourceLoaderMaxQueryLength' => 
$wgResourceLoaderMaxQueryLength,


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to