From da8079852c475247583af0bbaebc4394ed6d08b4 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 14 Jan 2004 09:12:53 +0000 Subject: [PATCH] Even in visible-groups mode, only show recent activity of one's own group Not sure if this is right though --- mod/forum/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 5ca2238e95..d0e2bf31d1 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -415,7 +415,8 @@ function forum_print_recent_activity($course, $isteacher, $timestart) { /// TEMPORARY: This algorithm is ridiculously cumbersome ... /// There MUST be a better way of doing this... if ($cm = get_coursemodule_from_instance("forum", $post->forum, $course->id)) { - if (groupmode($course, $cm) == SEPARATEGROUPS) { + $groupmode = groupmode($course, $cm); + if ($groupmode == SEPARATEGROUPS or $groupmode == VISIBLEGROUPS) { if (!isteacheredit($course->id)) { if ($discussion = get_record("forum_discussions", "id", $post->discussion)) { if ($firstpost = get_record("forum_posts", "id", $discussion->firstpost)) { -- 2.39.5