MDL-9467 workaround for broken langcache problems when editting user profile; merged from MOODLE_18_STABLE
This commit is contained in:
+2
-5
@@ -177,11 +177,8 @@ function useredit_shared_definition(&$mform) {
|
||||
$mform->setDefault('timezone', '99');
|
||||
}
|
||||
|
||||
$choices = array();
|
||||
if ($choices = get_list_of_languages()) {
|
||||
$mform->addElement('select', 'lang', get_string('preferredlanguage'), $choices);
|
||||
$mform->setDefault('lang', $CFG->lang);
|
||||
}
|
||||
$mform->addElement('select', 'lang', get_string('preferredlanguage'), get_list_of_languages());
|
||||
$mform->setDefault('lang', $CFG->lang);
|
||||
|
||||
if (!empty($CFG->allowuserthemes)) {
|
||||
$choices = array();
|
||||
|
||||
Reference in New Issue
Block a user