Http::get() doesn't return an object, it already returns the results or null anyway...
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 1 Aug 2009 18:44:28 +0000 (18:44 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 1 Aug 2009 18:44:28 +0000 (18:44 +0000)
includes/GlobalFunctions.php

index ce3c69a..af96eb1 100644 (file)
@@ -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 );
 }
 
 /**