r54180 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54179‎ | r54180 | r54181 >
Date:18:44, 1 August 2009
Author:demon
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -2722,10 +2722,7 @@
27232723 */
27242724 function wfGetHTTP( $url ) {
27252725 wfDeprecated(__FUNCTION__);
2726 - $status = Http::get( $url );
2727 - if( $status->isOK() )
2728 - return $status->value;
2729 - return null;
 2726+ return Http::get( $url );
27302727 }
27312728
27322729 /**

Status & tagging log