PHP Fatal error: Call to undefined function request() in /usr/local/apache/common...
authorRiver Tarnell <river@users.mediawiki.org>
Thu, 10 May 2007 19:29:21 +0000 (19:29 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Thu, 10 May 2007 19:29:21 +0000 (19:29 +0000)
need to qualify function with class name

includes/HttpFunctions.php

index e14484e..16a6348 100644 (file)
@@ -5,11 +5,11 @@
  */
 class Http {
        static function get( $url, $timeout = 'default' ) {
-               return request( "GET", $url, $timeout );
+               return Http::request( "GET", $url, $timeout );
        }
 
        static function post( $url, $timeout = 'default' ) {
-               return request( "POST", $url, $timeout );
+               return Http::request( "POST", $url, $timeout );
        }
 
        /**