Permalink
Browse files

MDL-16259 Display overridden role names in course info pop-up box.

  • Loading branch information...
mudrd8mz
mudrd8mz committed Sep 1, 2008
1 parent aa45463 commit fe89f0546407841d6480eb61202a5879d4740c90
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/info.php
View
@@ -65,7 +65,7 @@
if ($users = get_role_users($roleid, $context, true, '', 'u.lastname ASC', $canseehidden)) {
foreach ($users as $teacher) {
$fullname = fullname($teacher, has_capability('moodle/site:viewfullnames', $context));
$namesarray[] = format_string($role->name).': <a href="'.$CFG->wwwroot.'/user/view.php?id='.
$namesarray[] = format_string(role_get_name($role, $context)).': <a href="'.$CFG->wwwroot.'/user/view.php?id='.
$teacher->id.'&amp;course='.SITEID.'">'.$fullname.'</a>';
}
}

0 comments on commit fe89f05

Please sign in to comment.