Browse files

MDL-32357 Try to fix unread post notification for blog-style forums.

I know that showing unread posts is not 100% blog-style, but I think
it is useful functionality, therefore, I chose to fix it, rather than,
say, disable it completely.

I think this fix will only affect blog-style forums since
forum_print_latest_discussions is only called with mode 'plain' in
three places:
1. Blog-style forums - the case we want to fix,
2. Site news forum, and
3. Social course format.

In all cases, having read tracking work properly seems like the
right thing to do.
  • Loading branch information...
timhunt authored and danpoltawski committed Apr 6, 2012
1 parent d8317f0 commit bb1042480f9c23fe7c359fd5d701374d06848246
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
@@ -5433,7 +5433,8 @@ function forum_print_latest_discussions($course, $forum, $maxdiscussions=-1, $di
$discussion->forum = $forum->id;
- forum_print_post($discussion, $discussion, $forum, $cm, $course, $ownpost, 0, $link, false);
+ forum_print_post($discussion, $discussion, $forum, $cm, $course, $ownpost, 0, $link, false,
+ '', null, true, $forumtracked);

0 comments on commit bb10424

Please sign in to comment.