From: willcast Date: Fri, 28 Nov 2003 02:18:47 +0000 (+0000) Subject: - Fixing bug that was preveting uploaded files to be shown... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0c4a0e80b794d59fbfcf27ea7a75d45f6f729e03;p=moodle.git - Fixing bug that was preveting uploaded files to be shown... Uploaded files parsing is not ready so it's desabled by code... --- diff --git a/mod/resource/view.php b/mod/resource/view.php index 186425ccb8..24a016572f 100644 --- a/mod/resource/view.php +++ b/mod/resource/view.php @@ -160,7 +160,7 @@ echo "
"; echo "
"; echo "
"; - } else if ($resourcehtml and $CFG->resource_filterexternalpages) { + } else if ($resourcehtml and $fetchingprefix) { echo "
"; $content = resource_fetch_remote_file("$fetchingprefix$fullurl"); @@ -183,7 +183,7 @@ $fullurl = "$CFG->wwwroot/file.php?file=/$course->id/$resource->reference"; } - if ($resourcehtml and $CFG->resource_filterexternalpages) { + if ( $resourcehtml and $fetchingprefix ) { echo "id&url=$fetchingprefix$fullurl\">"; } else { echo ""; @@ -291,4 +291,4 @@ break; } -?> +?> \ No newline at end of file