Fix r93820: PROT_ -> PROTO_
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Aug 2011 13:11:42 +0000 (13:11 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Aug 2011 13:11:42 +0000 (13:11 +0000)
includes/HttpFunctions.php
includes/OutputPage.php
includes/User.php
includes/filerepo/ForeignAPIRepo.php
includes/libs/CSSMin.php
includes/parser/CoreParserFunctions.php
includes/resourceloader/ResourceLoaderFileModule.php

index df6dd49..de484d2 100644 (file)
@@ -32,7 +32,7 @@ class Http {
         * @return Mixed: (bool)false on failure or a string on success
         */
        public static function request( $method, $url, $options = array() ) {
-               $url = wfExpandUrl( $url, PROT_HTTP );
+               $url = wfExpandUrl( $url, PROTO_HTTP );
                wfDebug( "HTTP: $method: $url\n" );
                $options['method'] = strtoupper( $method );
 
index 0164ad3..b93e20a 100644 (file)
@@ -2820,7 +2820,7 @@ $templates
                                'type' => 'application/rsd+xml',
                                // Output a protocol-relative URL here if $wgServer is protocol-relative
                                // Whether RSD accepts relative or protocol-relative URLs is completely undocumented, though
-                               'href' => wfExpandUrl( wfAppendQuery( wfScript( 'api' ), array( 'action' => 'rsd' ) ), PROT_RELATIVE ),
+                               'href' => wfExpandUrl( wfAppendQuery( wfScript( 'api' ), array( 'action' => 'rsd' ) ), PROTO_RELATIVE ),
                        ) );
                }
 
index ee9a736..47e2462 100644 (file)
@@ -3321,7 +3321,7 @@ class User {
                                '$1',
                                "Special:$page/$token",
                                $wgArticlePath ),
-                       PROT_HTTP
+                       PROTO_HTTP
                );
        }
 
index 4664384..e0109da 100644 (file)
@@ -370,7 +370,7 @@ class ForeignAPIRepo extends FileRepo {
        public static function httpGet( $url, $timeout = 'default', $options = array() ) {
                $options['timeout'] = $timeout;
                /* Http::get */
-               $url = wfExpandUrl( $url, PROT_HTTP );
+               $url = wfExpandUrl( $url, PROTO_HTTP );
                wfDebug( "ForeignAPIRepo: HTTP GET: $url\n" );
                $options['method'] = "GET";
 
index 8fd83d6..2002408 100644 (file)
@@ -138,7 +138,7 @@ class CSSMin {
                                        $expanded = wfExpandUrl( $match['file'][0] );
                                        $origLength = strlen( $match['file'][0] );
                                        $lengthIncrease = strlen( $expanded ) - $origLength;
-                                       $source = substr_replace( $source, wfExpandUrl( $match['file'][0], PROT_RELATIVE ),
+                                       $source = substr_replace( $source, wfExpandUrl( $match['file'][0], PROTO_RELATIVE ),
                                                $match['file'][1], $origLength,
                                        );
                                }
index 48cee4c..eda577d 100644 (file)
@@ -723,7 +723,7 @@ class CoreParserFunctions {
                                // ... and we can
                                if ( $mto && !$mto->isError() ) {
                                        // ... change the URL to point to a thumbnail.
-                                       $url = wfExpandUrl( $mto->getUrl(), PROT_RELATIVE );
+                                       $url = wfExpandUrl( $mto->getUrl(), PROTO_RELATIVE );
                                }
                        }
                        if ( $option == 'nowiki' ) {
index 59ca6dc..8d50dca 100644 (file)
@@ -206,7 +206,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
                }
                // Make sure the remote base path is a complete valid URL,
                // but possibly protocol-relative to avoid cache pollution
-               $this->remoteBasePath = wfExpandUrl( $this->remoteBasePath, PROT_RELATIVE );
+               $this->remoteBasePath = wfExpandUrl( $this->remoteBasePath, PROTO_RELATIVE );
        }
 
        /**