Skip to content

Commit

Permalink
MDL-30968 mod_forum: No picture link to group when no groups mode
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Nov 12, 2014
1 parent 8aff36d commit 800fa05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -3723,7 +3723,12 @@ function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring=""
if ($group !== -1) { // Groups are active - group is a group data object or NULL
echo '<td class="picture group">';
if (!empty($group->picture) and empty($group->hidepicture)) {
print_group_picture($group, $forum->course, false, false, true);
if ($canviewparticipants && $COURSE->groupmode) {
$picturelink = true;
} else {
$picturelink = false;
}
print_group_picture($group, $forum->course, false, false, $picturelink);
} else if (isset($group->id)) {
if ($canviewparticipants && $COURSE->groupmode) {
echo '<a href="'.$CFG->wwwroot.'/user/index.php?id='.$forum->course.'&amp;group='.$group->id.'">'.$group->name.'</a>';
Expand Down

0 comments on commit 800fa05

Please sign in to comment.