Permalink
Browse files

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

  • Loading branch information...
1 parent c39162d commit 99a9b2d4c3904cd0a426b97ea67f35da304f7871 moodler committed May 29, 2004
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/resource/lib.php
View
@@ -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";

0 comments on commit 99a9b2d

Please sign in to comment.