mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merge branch 'MDL-72850' of https://github.com/paulholden/moodle
This commit is contained in:
commit
12795aa4b1
@ -651,8 +651,8 @@ if ($hassiteconfig) {
|
||||
3, $options));
|
||||
// Teacher roles.
|
||||
$options = [];
|
||||
foreach (get_all_roles() as $role) {
|
||||
$options[$role->id] = $role->shortname;
|
||||
foreach (role_get_names() as $role) {
|
||||
$options[$role->id] = $role->localname;
|
||||
}
|
||||
$temp->add(new admin_setting_configmultiselect('searchteacherroles',
|
||||
new lang_string('searchteacherroles', 'admin'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user