Permalink
Browse files

- Fixing bug that was preveting uploaded files to be shown...

Uploaded files parsing is not ready so it's desabled by code...
  • Loading branch information...
1 parent 3bfe392 commit 0c4a0e80b794d59fbfcf27ea7a75d45f6f729e03 willcast committed Nov 28, 2003
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/resource/view.php
View
@@ -160,7 +160,7 @@
echo "<br />";
echo "<center><img class=\"resourceimage\" src=\"$fullurl\"></center>";
echo "<br />";
- } else if ($resourcehtml and $CFG->resource_filterexternalpages) {
+ } else if ($resourcehtml and $fetchingprefix) {
echo "<br />";
$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 "<frame src=\"fetch.php?id=$cm->id&url=$fetchingprefix$fullurl\">";
} else {
echo "<frame src=\"$fullurl\">";
@@ -291,4 +291,4 @@
break;
}
-?>
+?>

0 comments on commit 0c4a0e8

Please sign in to comment.