From: moodler Date: Wed, 3 Oct 2007 03:31:31 +0000 (+0000) Subject: Fixed the list of role names (order and filters) MDL-11143 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=997436fa365d0afa5e10dcf7ce43907912142f98;p=moodle.git Fixed the list of role names (order and filters) MDL-11143 --- diff --git a/admin/settings/frontpage.php b/admin/settings/frontpage.php index 7b16f3b2d3..28ddfccae9 100644 --- a/admin/settings/frontpage.php +++ b/admin/settings/frontpage.php @@ -37,9 +37,9 @@ if (get_site()) { //do not use during installation // front page default role $roleoptions = array(0=>get_string('none')); // roles to choose from - if ($roles = get_records('role')) { + if ($roles = get_all_roles()) { foreach ($roles as $role) { - $roleoptions[$role->id] = $role->name; + $roleoptions[$role->id] = strip_tags(format_string($role->name, true)); } } $temp->add(new admin_setting_configselect('defaultfrontpageroleid', get_string('frontpagedefaultrole', 'admin'), '', 0, $roleoptions)); @@ -55,4 +55,4 @@ if (get_site()) { //do not use during installation $ADMIN->add('frontpage', new admin_externalpage('sitefiles', get_string('sitefiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext)); } } -?> \ No newline at end of file +?>