summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/settings/save_prefs.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-08-27 06:18:54 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-08-27 06:18:54 +0000
commit1c9867c25df77cdfd028bbd66561917b91d9e9a2 (patch)
tree47776dd4461ae2706a2e2a36d535e990637e9ee7 /roundcubemail/program/steps/settings/save_prefs.inc
parentbe46fdcce049bd0433631a01098b5aa40c530449 (diff)
Reload settings page if language was changed
git-svn-id: https://svn.roundcube.net/trunk@2873 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/save_prefs.inc')
-rw-r--r--roundcubemail/program/steps/settings/save_prefs.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/settings/save_prefs.inc b/roundcubemail/program/steps/settings/save_prefs.inc
index d0bfdf099..48f6ef7ef 100644
--- a/roundcubemail/program/steps/settings/save_prefs.inc
+++ b/roundcubemail/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;