mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
Merge branch 'MDL-47246_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
051d59e36e
@ -3770,8 +3770,8 @@ function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring=""
|
||||
$usermodified->id = $post->usermodified;
|
||||
$usermodified = username_load_fields_from_object($usermodified, $post, 'um');
|
||||
|
||||
// Show link to last poster and their post if user can see them.
|
||||
if ($canviewparticipants) {
|
||||
// In QA forums we check that the user can view participants.
|
||||
if ($forum->type !== 'qanda' || $canviewparticipants) {
|
||||
echo '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$post->usermodified.'&course='.$forum->course.'">'.
|
||||
fullname($usermodified).'</a><br />';
|
||||
$parenturl = (empty($post->lastpostid)) ? '' : '&parent='.$post->lastpostid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user