From 90a1018148b993380f4a342067738a0a1ea7d7ba Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 4 Jul 2008 02:52:44 +0000 Subject: [PATCH] Revert r37017. Please do not remove functions unless you have a really really good reason, say because you actually want to break all extensions that use them because the underlying functionality needs to be removed. There are more extensions out of Wikimedia version control than in it, and many sysadmins will not update their extensions simultaneously with the core. --- includes/GlobalFunctions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index d5df7c0ffd..074014a8d4 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2293,6 +2293,16 @@ function wfCreateObject( $name, $p ){ } } +/** + * Aliases for modularized functions + */ +function wfGetHTTP( $url, $timeout = 'default' ) { + return Http::get( $url, $timeout ); +} +function wfIsLocalURL( $url ) { + return Http::isLocalURL( $url ); +} + function wfHttpOnlySafe() { global $wgHttpOnlyBlacklist; if( !version_compare("5.2", PHP_VERSION, "<") ) -- 2.20.1