]> git.mjollnir.org Git - moodle.git/commitdiff
- Fixing bug that was preveting uploaded files to be shown...
authorwillcast <willcast>
Fri, 28 Nov 2003 02:18:47 +0000 (02:18 +0000)
committerwillcast <willcast>
Fri, 28 Nov 2003 02:18:47 +0000 (02:18 +0000)
Uploaded files parsing is not ready so it's desabled by code...

mod/resource/view.php

index 186425ccb8c30cf400015b8123a6e3c43d9b83c4..24a016572f2a86fe528bddac6409bb669dc8c72d 100644 (file)
                     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");
                     $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\">";
             break;
     }
 
-?>
+?>
\ No newline at end of file