mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-9467 workaround for broken langcache problems when editting user profile; merged from MOODLE_18_STABLE
This commit is contained in:
parent
80274abfa1
commit
ca80f999ce
1 changed files with 2 additions and 5 deletions
|
@ -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->addElement('select', 'lang', get_string('preferredlanguage'), get_list_of_languages());
|
||||
$mform->setDefault('lang', $CFG->lang);
|
||||
}
|
||||
|
||||
if (!empty($CFG->allowuserthemes)) {
|
||||
$choices = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue