From: toyomoyo Date: Wed, 6 Sep 2006 02:14:20 +0000 (+0000) Subject: replacing isteacher with viewfullname capability X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=26663a2386528c5ecfa732e66578d9f292023d14;p=moodle.git replacing isteacher with viewfullname capability --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index bdd3938c82..181eb3df48 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).'';