]> git.mjollnir.org Git - moodle.git/commitdiff
fix for MDL-9197. multilang filter is not applied to default role in course settings
authortoyomoyo <toyomoyo>
Thu, 5 Apr 2007 03:56:50 +0000 (03:56 +0000)
committertoyomoyo <toyomoyo>
Thu, 5 Apr 2007 03:56:50 +0000 (03:56 +0000)
course/edit_form.php

index cd71c8aea1b954f62950e73c5ace9fd976baa8c9..090c161143a8120fd0615da96e505ae194ac39f1 100644 (file)
@@ -166,6 +166,12 @@ class course_edit_form extends moodleform {
             $choices[0] = get_string('sitedefault');
         }
         $choices = $choices + $roles;
+
+        // fix for MDL-9197
+        foreach ($choices as $choiceid => $choice) {
+            $choices[$choiceid] = format_string($choice);
+        }
+
         $mform->addElement('select', 'defaultrole', get_string('defaultrole', 'role'), $choices);
         $mform->setDefault('defaultrole', 0);