From 3eafc7fe5378c658a90b8e78c3c63009e93c2463 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 1 Aug 2009 18:44:28 +0000 Subject: [PATCH] Http::get() doesn't return an object, it already returns the results or null anyway. BTW: is anyone actually still using this? *stab* --- includes/GlobalFunctions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ); } /** -- 2.20.1