From: Tim Starling Date: Fri, 4 Jul 2008 02:52:44 +0000 (+0000) Subject: Revert r37017. Please do not remove functions unless you have a really really good... X-Git-Tag: 1.31.0-rc.0~46757 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=90a1018148b993380f4a342067738a0a1ea7d7ba;p=lhc%2Fweb%2Fwiklou.git 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. --- 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, "<") )