From: Chad Horohoe Date: Sat, 1 Aug 2009 18:44:28 +0000 (+0000) Subject: Http::get() doesn't return an object, it already returns the results or null anyway... X-Git-Tag: 1.31.0-rc.0~40587 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=3eafc7fe5378c658a90b8e78c3c63009e93c2463;p=lhc%2Fweb%2Fwiklou.git Http::get() doesn't return an object, it already returns the results or null anyway. BTW: is anyone actually still using this? *stab* --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index ce3c69a6f2..af96eb1df6 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2722,10 +2722,7 @@ function wfCreateObject( $name, $p ){ */ function wfGetHTTP( $url ) { wfDeprecated(__FUNCTION__); - $status = Http::get( $url ); - if( $status->isOK() ) - return $status->value; - return null; + return Http::get( $url ); } /**