Replaced isteacher() in fullname() call.

This commit is contained in:
vyshane 2006-09-18 02:28:57 +00:00
parent 62bb11d837
commit 24bf6cc196

View File

@ -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.'&amp;course='.$data->course.'">'.$fullname.'</a>';
$by->date = userdate($comment->modified);