]> git.mjollnir.org Git - moodle.git/commitdiff
Replaced isteacher() in fullname() call.
authorvyshane <vyshane>
Mon, 18 Sep 2006 02:28:57 +0000 (02:28 +0000)
committervyshane <vyshane>
Mon, 18 Sep 2006 02:28:57 +0000 (02:28 +0000)
mod/data/lib.php

index 3805b11fd28d24b48cad0584e44af7f358ddf323..d494f00f55bd94abb1a010ac4f5b3b6052095e71 100755 (executable)
@@ -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);