Permalink
Browse files

Whoops ... using forum->assessed to determine whether discussions should

be assessable now
  • Loading branch information...
1 parent 0bb2c9f commit fe25fc9b381584ff9c5a9239b66d874539358df7 martin committed Aug 6, 2002
Showing with 5 additions and 5 deletions.
  1. +1 −1 mod/forum/discuss.php
  2. +3 −3 mod/forum/lib.php
  3. +1 −1 mod/forum/view.php
View
2 mod/forum/discuss.php
@@ -66,7 +66,7 @@
"$navmiddle -> $navtail", "", "", true, $updatebutton);
}
- forum_print_discussion($course, $discussion, $post, $USER->mode);
+ forum_print_discussion($course, $forum, $discussion, $post, $USER->mode);
print_footer($course);
View
6 mod/forum/lib.php
@@ -862,7 +862,7 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5, $f
}
}
-function forum_print_discussion($course, $discussion, $post, $mode) {
+function forum_print_discussion($course, $forum, $discussion, $post, $mode) {
global $USER;
@@ -872,7 +872,7 @@ function forum_print_discussion($course, $discussion, $post, $mode) {
forum_print_mode_form($discussion->id, $mode);
- if ($discussion->assessed && $USER->id) {
+ if ($forum->assessed && $USER->id) {
echo "<FORM NAME=form METHOD=POST ACTION=rate.php>";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\">";
}
@@ -895,7 +895,7 @@ function forum_print_discussion($course, $discussion, $post, $mode) {
break;
}
- if ($discussion->assessed && $USER->id) {
+ if ($forum->assessed && $USER->id) {
echo "<CENTER><P ALIGN=center><INPUT TYPE=submit VALUE=\"".get_string("sendinratings", "forum")."\"></P></CENTER>";
echo "</FORM>";
}
View
2 mod/forum/view.php
@@ -104,7 +104,7 @@
error("Could not find the first post in this forum");
}
forum_set_display_mode($mode);
- forum_print_discussion($course, $discussion, $post, $USER->mode);
+ forum_print_discussion($course, $forum, $discussion, $post, $USER->mode);
break;
case "eachuser":

0 comments on commit fe25fc9

Please sign in to comment.