External resources where we don't know the type are given the web icon

This commit is contained in:
moodler
2004-05-29 06:24:23 +00:00
parent c39162dc53
commit 99a9b2d4c3
+2
View File
@@ -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";