Skip to content

Commit

Permalink
MDL-9467 workaround for broken langcache problems when editting user …
Browse files Browse the repository at this point in the history
…profile; merged from MOODLE_18_STABLE
  • Loading branch information
skodak committed Apr 20, 2007
1 parent 80274ab commit ca80f99
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions user/editlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ca80f99

Please sign in to comment.