Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -2293,6 +2293,16 @@ |
2294 | 2294 | } |
2295 | 2295 | } |
2296 | 2296 | |
| 2297 | +/** |
| 2298 | + * Aliases for modularized functions |
| 2299 | + */ |
| 2300 | +function wfGetHTTP( $url, $timeout = 'default' ) { |
| 2301 | + return Http::get( $url, $timeout ); |
| 2302 | +} |
| 2303 | +function wfIsLocalURL( $url ) { |
| 2304 | + return Http::isLocalURL( $url ); |
| 2305 | +} |
| 2306 | + |
2297 | 2307 | function wfHttpOnlySafe() { |
2298 | 2308 | global $wgHttpOnlyBlacklist; |
2299 | 2309 | if( !version_compare("5.2", PHP_VERSION, "<") ) |