From: toyomoyo Date: Thu, 5 Apr 2007 03:56:50 +0000 (+0000) Subject: fix for MDL-9197. multilang filter is not applied to default role in course settings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f20d7c41af968a3ed24437ec38f96eefeaf83afd;p=moodle.git fix for MDL-9197. multilang filter is not applied to default role in course settings --- diff --git a/course/edit_form.php b/course/edit_form.php index cd71c8aea1..090c161143 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -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);