From 26663a2386528c5ecfa732e66578d9f292023d14 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Wed, 6 Sep 2006 02:14:20 +0000 Subject: [PATCH] replacing isteacher with viewfullname capability --- mod/glossary/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index bdd3938c82dda..181eb3df48003 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -1559,7 +1559,7 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) { $user = get_record('user', 'id', $comment->userid); $strby = get_string('writtenby','glossary'); - $fullname = fullname($user, isteacher($course->id)); + $fullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id))); echo '
'; echo ''; @@ -1569,7 +1569,7 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) { echo ''; echo '
'; - $fullname = fullname($user, isteacher($course->id)); + $fullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id))); $by->name = ''.$fullname.''; $by->date = userdate($comment->timemodified); echo ''.get_string('bynameondate', 'forum', $by).'';