Use Http::get() rather than file_get_contents()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 22 Apr 2009 19:16:11 +0000 (19:16 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 22 Apr 2009 19:16:11 +0000 (19:16 +0000)
includes/ExternalStoreHttp.php

index e813958..37fbbe6 100644 (file)
@@ -6,8 +6,8 @@
  */
 class ExternalStoreHttp {
        /* Fetch data from given URL */
-       function fetchFromURL($url) {
-               $ret = file_get_contents( $url );
+       function fetchFromURL( $url ) {
+               $ret = Http::get( $url );
                return $ret;
        }