]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17617 - fixed regressions - missing $ch
authorskodak <skodak>
Sat, 17 Jan 2009 18:46:28 +0000 (18:46 +0000)
committerskodak <skodak>
Sat, 17 Jan 2009 18:46:28 +0000 (18:46 +0000)
lib/filelib.php

index 14072b5d3e4ea18fb1953a8307eb9b717a6ee232..615ef88a97333823f8126ba7afe3e63d93ccd93d 100644 (file)
@@ -342,7 +342,9 @@ function download_file_content($url, $headers=null, $postdata=null, $fullrespons
     }
 
     // check if proxy (if used) should be bypassed for this url
-    $proxybypass = is_proxybypass( $url );
+    $proxybypass = is_proxybypass($url);
+
+    $ch = curl_init($url);
 
     // set extra headers
     if (is_array($headers) ) {