http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54180
Revision: 54180 Author: demon Date: 2009-08-01 18:44:28 +0000 (Sat, 01 Aug 2009) Log Message: ----------- Http::get() doesn't return an object, it already returns the results or null anyway. BTW: is anyone actually still using this? *stab* Modified Paths: -------------- trunk/phase3/includes/GlobalFunctions.php Modified: trunk/phase3/includes/GlobalFunctions.php =================================================================== --- trunk/phase3/includes/GlobalFunctions.php 2009-08-01 18:32:36 UTC (rev 54179) +++ trunk/phase3/includes/GlobalFunctions.php 2009-08-01 18:44:28 UTC (rev 54180) @@ -2722,10 +2722,7 @@ */ function wfGetHTTP( $url ) { wfDeprecated(__FUNCTION__); - $status = Http::get( $url ); - if( $status->isOK() ) - return $status->value; - return null; + return Http::get( $url ); } /** _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs