]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16259 Display overridden role names in course info pop-up box. Merged from 1.9
authormudrd8mz <mudrd8mz>
Mon, 1 Sep 2008 09:41:26 +0000 (09:41 +0000)
committermudrd8mz <mudrd8mz>
Mon, 1 Sep 2008 09:41:26 +0000 (09:41 +0000)
course/info.php

index 3ddfcffb1753a8ff46f669ccc72d9c63ecdf3b6a..47eebd1e182e165154fb96dd0ab377f386c91903 100644 (file)
@@ -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>';
                 }
             }