From: moodler Date: Fri, 28 Nov 2003 02:19:20 +0000 (+0000) Subject: Removed some tabs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b2b8471e63698dc2624fa59569689934bd3ed8e5;p=moodle.git Removed some tabs --- diff --git a/mod/resource/lib.php b/mod/resource/lib.php index d4ef05915b..6a5bffb46f 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -172,15 +172,15 @@ function resource_fetch_remote_file ($cm, $url, $headers = "" ) { require_once("$CFG->libdir/snoopy/Snoopy.class.inc"); - $client = new Snoopy(); - $client->agent = MAGPIE_USER_AGENT; - $client->read_timeout = MAGPIE_FETCH_TIME_OUT; - $client->use_gzip = MAGPIE_USE_GZIP; - if (is_array($headers) ) { - $client->rawheaders = $headers; - } - - @$client->fetch($url); + $client = new Snoopy(); + $client->agent = MAGPIE_USER_AGENT; + $client->read_timeout = MAGPIE_FETCH_TIME_OUT; + $client->use_gzip = MAGPIE_USE_GZIP; + if (is_array($headers) ) { + $client->rawheaders = $headers; + } + + @$client->fetch($url); $tags = array("A" => "href=", "IMG" => "src=", @@ -197,7 +197,7 @@ function resource_fetch_remote_file ($cm, $url, $headers = "" ) { } $client->results = resource_redirect_tags($client->results, $url, $tag, $key,$prefix); } - return $client; + return $client; } function resource_redirect_tags($text, $url, $tagtoparse, $keytoparse,$prefix = "" ) {