From: moodler Date: Sat, 29 May 2004 06:24:23 +0000 (+0000) Subject: External resources where we don't know the type are given the web icon X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=99a9b2d4c3904cd0a426b97ea67f35da304f7871;p=moodle.git External resources where we don't know the type are given the web icon --- diff --git a/mod/resource/lib.php b/mod/resource/lib.php index 6a93e0ceba..16f021b269 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -190,6 +190,8 @@ function resource_get_coursemodule_info($coursemodule) { $icon = mimeinfo("icon", $resource->reference); if ($icon != 'unknown.gif') { $info->icon ="f/$icon"; + } else if ($resource->type == WEBLINK or $resource->type == WEBPAGE) { + $info->icon ="f/web.gif"; } } else if ($resource->type == DIRECTORY) { $info->icon ="f/folder.gif";