Skip to content

Commit

Permalink
replacing isteacher with viewfullname capability
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Sep 6, 2006
1 parent d4649c7 commit 26663a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/glossary/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<center>';
echo '<table class="glossarycomment" cellspacing="0">';
Expand All @@ -1569,7 +1569,7 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) {
echo '</td>';
echo '<td class="entryheader">';

$fullname = fullname($user, isteacher($course->id));
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id)));
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$course->id.'">'.$fullname.'</a>';
$by->date = userdate($comment->timemodified);
echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';
Expand Down

0 comments on commit 26663a2

Please sign in to comment.