]> git.mjollnir.org Git - moodle.git/commitdiff
Comments in data print the "by" and then the date but no username MDL-7235; merged...
authorskodak <skodak>
Fri, 27 Oct 2006 07:50:28 +0000 (07:50 +0000)
committerskodak <skodak>
Fri, 27 Oct 2006 07:50:28 +0000 (07:50 +0000)
mod/data/lib.php

index d045931b84af8dec5a8be0aea032a4daa18f829e..666fbffebff0190272a551f04d6dccfc62765aef 100755 (executable)
@@ -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);