r49736 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49735‎ | r49736 | r49737 >
Date:19:16, 22 April 2009
Author:ialex
Status:ok
Tags:
Comment:
Use Http::get() rather than file_get_contents()
Modified paths:
  • /trunk/phase3/includes/ExternalStoreHttp.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ExternalStoreHttp.php
@@ -6,8 +6,8 @@
77 */
88 class ExternalStoreHttp {
99 /* Fetch data from given URL */
10 - function fetchFromURL($url) {
11 - $ret = file_get_contents( $url );
 10+ function fetchFromURL( $url ) {
 11+ $ret = Http::get( $url );
1212 return $ret;
1313 }
1414

Status & tagging log