mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-30968 mod/forum Fixed group link
This commit is contained in:
parent
9ebee5df8e
commit
c980dd123a
@ -3639,7 +3639,7 @@ function forum_rating_validate($params) {
|
||||
function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring="",
|
||||
$cantrack=true, $forumtracked=true, $canviewparticipants=true, $modcontext=NULL) {
|
||||
|
||||
global $USER, $CFG, $OUTPUT;
|
||||
global $COURSE, $USER, $CFG, $OUTPUT;
|
||||
|
||||
static $rowcount;
|
||||
static $strmarkalldread;
|
||||
@ -3689,7 +3689,7 @@ function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring=""
|
||||
if (!empty($group->picture) and empty($group->hidepicture)) {
|
||||
print_group_picture($group, $forum->course, false, false, true);
|
||||
} else if (isset($group->id)) {
|
||||
if($canviewparticipants) {
|
||||
if ($canviewparticipants && $COURSE->groupmode) {
|
||||
echo '<a href="'.$CFG->wwwroot.'/user/index.php?id='.$forum->course.'&group='.$group->id.'">'.$group->name.'</a>';
|
||||
} else {
|
||||
echo $group->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user