]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed the list of role names (order and filters) MDL-11143
authormoodler <moodler>
Wed, 3 Oct 2007 03:31:31 +0000 (03:31 +0000)
committermoodler <moodler>
Wed, 3 Oct 2007 03:31:31 +0000 (03:31 +0000)
admin/settings/frontpage.php

index 7b16f3b2d3d3e059d0828e2e9c748015efdf8544..28ddfccae945031993d672b4220691f914d087a4 100644 (file)
@@ -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
+?>