From 7e1500acd784d2bb70a3ded6cae3a91b8f597ecf Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 26 Apr 2004 15:44:25 +0000 Subject: [PATCH] WEBLINKs and WEBPAGEs can have icons too --- mod/resource/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/resource/lib.php b/mod/resource/lib.php index fd5735604f..d2db6a4bcd 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -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"; -- 2.39.5