mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-18869 fixed full name display; merged from MOODLE_19_STABLE
This commit is contained in:
parent
4e1132a8c5
commit
c679322bb8
@ -167,7 +167,7 @@
|
||||
echo '</td>';
|
||||
|
||||
echo '<td class="topic starter"><div class="subject">'.$template['title'].'</div><div class="author">';
|
||||
$fullname = fullname($user, $template['userid']);
|
||||
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $COURSE->id)));
|
||||
$by = new object();
|
||||
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.
|
||||
$user->id.'&course='.$COURSE->id.'">'.$fullname.'</a>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user