Skip to content

Commit

Permalink
MDL-16259 Display overridden role names in course info pop-up box. Me…
Browse files Browse the repository at this point in the history
…rged from 1.9
  • Loading branch information
mudrd8mz committed Sep 1, 2008
1 parent ff7e7f9 commit ff1f360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
}
}
Expand Down

0 comments on commit ff1f360

Please sign in to comment.