From: Brion Vibber Date: Sun, 26 Jun 2005 18:49:40 +0000 (+0000) Subject: live hack X-Git-Tag: 1.5.0beta2~198 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=39f7b246de234c1421d0009009b4f5865548cd76;p=lhc%2Fweb%2Fwiklou.git live hack --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 2daa3acf08..f292a41bf3 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -20,9 +20,10 @@ function wfGetHTTP( $url, $timeout = 'default' ) { } curl_setopt( $c, CURLOPT_TIMEOUT, $timeout ); ob_start(); - curl_exec(); + curl_exec( $c ); $text = ob_get_contents(); ob_end_clean(); + curl_close( $c ); } else { # Otherwise use file_get_contents, or its compatibility function from GlobalFunctions.php # This may take 3 minutes to time out, and doesn't have local fetch capabilities