Browse files

Fix to update_module_icon (to pass the courseid)

  • Loading branch information...
1 parent ed5ab9f commit da8b7aa7a5e90a2dda41f23c79747c822117bdba martin committed Jul 4, 2002
Showing with 4 additions and 4 deletions.
  1. +1 −1 mod/choice/view.php
  2. +1 −1 mod/forum/view.php
  3. +1 −1 mod/journal/view.php
  4. +1 −1 mod/survey/view.php
View
2 mod/choice/view.php
@@ -49,7 +49,7 @@
print_header("$course->shortname: $choice->name", "$course->fullname",
"<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
<A HREF=index.php?id=$course->id>Choices</A> -> $choice->name", "", "", true,
- update_module_icon($cm->id));
+ update_module_icon($cm->id, $course->id));
if (isteacher($course->id)) {
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">View all responses</A></P>";
View
2 mod/forum/view.php
@@ -17,7 +17,7 @@
if (! $forum = get_record("forum", "id", $cm->instance)) {
error("Forum ID was incorrect");
}
- $buttontext = update_module_icon($cm->id);
+ $buttontext = update_module_icon($cm->id, $course->id);
} else if ($f) {
if (! $forum = get_record("forum", "id", $f)) {
View
2 mod/journal/view.php
@@ -28,7 +28,7 @@
print_header("$course->shortname: $journal->name", "$course->fullname",
"<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
<A HREF=index.php?id=$course->id>Journals</A> -> $journal->name", "", "", true,
- update_module_icon($cm->id));
+ update_module_icon($cm->id, $course->id));
if (isteacher($course->id)) {
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">View all responses</A></P>";
View
2 mod/survey/view.php
@@ -23,7 +23,7 @@
print_header("$course->shortname: $survey->name", "$course->fullname",
"<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
<A HREF=index.php?id=$course->id>Surveys</A> -> $survey->name", "", "", true,
- update_module_icon($cm->id));
+ update_module_icon($cm->id, $course->id));
if (isteacher($course->id)) {
echo "<P align=right><A HREF=\"report.php?id=$cm->id\">View all responses</A></P>";

0 comments on commit da8b7aa

Please sign in to comment.