From: skodak Date: Fri, 27 Oct 2006 07:50:28 +0000 (+0000) Subject: Comments in data print the "by" and then the date but no username MDL-7235; merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bdeae2b9b8105e33abd8a91d783d1a1187ab5c99;p=moodle.git Comments in data print the "by" and then the date but no username MDL-7235; merged from MOODLE_17_STABLE --- diff --git a/mod/data/lib.php b/mod/data/lib.php index d045931b84..666fbffebf 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -1175,7 +1175,8 @@ function data_print_comment($data, $comment, $page=0) { echo ''; echo '
'; - $fullname = fullname($comment->userid, has_capability('moodle/site:viewfullnames', $context)); + $fullname = fullname($user, has_capability('moodle/site:viewfullnames', $context)); + $by = new object(); $by->name = ''.$fullname.''; $by->date = userdate($comment->modified);