Permalink
Browse files

edit icon always appears now, as long as a coursemodule exists

  • Loading branch information...
1 parent bc575b8 commit d9bf513d9c33553c483ab855ba6c04dc2eaf41b6 martin committed Jul 29, 2002
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/forum/view.php
View
6 mod/forum/view.php
@@ -26,7 +26,11 @@
if (! $course = get_record("course", "id", $forum->course)) {
error("Forum is misconfigured - don't know what course it's from");
}
- $buttontext = "";
+ if ($cm = get_coursemodule_from_instance("forum", $forum->id, $course->id)) {
+ $buttontext = update_module_icon($cm->id, $course->id);
+ } else {
+ $buttontext = "";
+ }
} else {
error("Must specify a course module or a forum ID");

0 comments on commit d9bf513

Please sign in to comment.