diff options
author | thomascube <thomas@roundcube.net> | 2009-08-27 06:18:54 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-08-27 06:18:54 +0000 |
commit | 141c9e732df32afb0ff6892b165bd72f1aac2287 (patch) | |
tree | a5e749bc15e6877b8282c5c730469f257d86284e /program/steps/settings | |
parent | 4ff4adca2754f408fd37fe1e28d4e1289730929b (diff) |
Reload settings page if language was changed
Diffstat (limited to 'program/steps/settings')
-rw-r--r-- | program/steps/settings/save_prefs.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index d0bfdf099..48f6ef7ef 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -102,8 +102,9 @@ switch ($CURR_SECTION) case 'general': // switch UI language - if (isset($_POST['_language'])) { + if (isset($_POST['_language']) && $a_user_prefs['language'] != $_SESSION['language']) { $RCMAIL->load_language($a_user_prefs['language']); + $OUTPUT->command('reload', 500); } // switch skin @@ -132,13 +133,13 @@ switch ($CURR_SECTION) // special handling for 'default_imap_folders' if (in_array('default_imap_folders', (array)$CONFIG['dont_override'])) { foreach (array('drafts_mbox','sent_mbox','junk_mbox','trash_mbox') as $p) - $a_user_prefs[$p] = $CONFIG[$p]; + $a_user_prefs[$p] = $CONFIG[$p]; } else { $a_user_prefs['default_imap_folders'] = array('INBOX'); foreach (array('drafts_mbox','sent_mbox','junk_mbox','trash_mbox') as $p) { - if ($a_user_prefs[$p]) + if ($a_user_prefs[$p]) $a_user_prefs['default_imap_folders'][] = $a_user_prefs[$p]; - } + } } break; |