]> git.mjollnir.org Git - moodle.git/commitdiff
Even in visible-groups mode, only show recent activity of one's own group
authormoodler <moodler>
Wed, 14 Jan 2004 09:12:53 +0000 (09:12 +0000)
committermoodler <moodler>
Wed, 14 Jan 2004 09:12:53 +0000 (09:12 +0000)
Not sure if this is right though

mod/forum/lib.php

index 5ca2238e953ddf1f774abb3fd3e58bfcc8ce5427..d0e2bf31d11c3d88063ca1cf1a07457a38b799b9 100644 (file)
@@ -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)) {