mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Replaced isteacher() in fullname() call.
This commit is contained in:
parent
62bb11d837
commit
24bf6cc196
@ -1179,7 +1179,7 @@ function data_print_comment($data, $comment, $page=0) {
|
||||
echo '</td>';
|
||||
|
||||
echo '<td class="topic starter" align="left"><div class="author">';
|
||||
$fullname = fullname($user, isteacher($comment->userid));
|
||||
$fullname = fullname($comment->userid, has_capability('moodle/site:viewfullnames', $context));
|
||||
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.
|
||||
$user->id.'&course='.$data->course.'">'.$fullname.'</a>';
|
||||
$by->date = userdate($comment->modified);
|
||||
|
Loading…
x
Reference in New Issue
Block a user