Comments in data print the "by" and then the date but no username MDL-7235; merged from MOODLE_17_STABLE

This commit is contained in:
skodak
2006-10-27 07:50:28 +00:00
parent 4c2095defe
commit bdeae2b9b8
+2 -1
View File
@@ -1175,7 +1175,8 @@ function data_print_comment($data, $comment, $page=0) {
echo '</td>';
echo '<td class="topic starter" align="left"><div class="author">';
$fullname = fullname($comment->userid, has_capability('moodle/site:viewfullnames', $context));
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', $context));
$by = new object();
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.
$user->id.'&amp;course='.$data->course.'">'.$fullname.'</a>';
$by->date = userdate($comment->modified);