Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -437,7 +437,7 @@ |
438 | 438 | global $wgServer; |
439 | 439 | if( substr( $url, 0, 2 ) == '//' ) { |
440 | 440 | $bits = wfParseUrl( $wgServer ); |
441 | | - $scheme = $bits ? $bits['scheme'] : 'http'; |
| 441 | + $scheme = $bits && $bits['scheme'] !== '' ? $bits['scheme'] : 'http'; |
442 | 442 | return $scheme . ':' . $url; |
443 | 443 | } elseif( substr( $url, 0, 1 ) == '/' ) { |
444 | 444 | return $wgServer . $url; |