]> git.mjollnir.org Git - moodle.git/commitdiff
WEBLINKs and WEBPAGEs can have icons too
authormoodler <moodler>
Mon, 26 Apr 2004 15:44:25 +0000 (15:44 +0000)
committermoodler <moodler>
Mon, 26 Apr 2004 15:44:25 +0000 (15:44 +0000)
mod/resource/lib.php

index fd5735604f4778e3af76148be8641a9ebc7c9b20..d2db6a4bcda1bb098fea1aed5b9a055cc3c74f89 100644 (file)
@@ -184,7 +184,7 @@ function resource_get_coursemodule_info($coursemodule) {
 
        require_once("$CFG->dirroot/files/mimetypes.php");
 
-       if ($resource->type == UPLOADEDFILE) {
+       if ($resource->type == UPLOADEDFILE or $resource->type == WEBLINK or $resource->type == WEBPAGE) {
               $icon = mimeinfo("icon", $resource->reference);
            if ($icon != 'unknown.gif') {
                       $info->icon ="f/$icon";