summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-11 09:23:00 +0000
committeralecpl <alec@alec.pl>2008-09-11 09:23:00 +0000
commit55fb73529c5f97fdd79982e546eb15ad870f4438 (patch)
treee7c1bfcdb7f35b44d10f275b13cbef5527d32c1b /program
parent47ac163541901c8668ea28d45666cc16cf2687a0 (diff)
- fix language setting (language select wasn't "refreshed" after change)
Diffstat (limited to 'program')
-rw-r--r--program/steps/settings/save_prefs.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc
index edd184a52..8e2a27953 100644
--- a/program/steps/settings/save_prefs.inc
+++ b/program/steps/settings/save_prefs.inc
@@ -20,6 +20,7 @@
*/
$a_user_prefs = array(
+ 'language' => isset($_POST['_language']) ? get_input_value('_language', RCUBE_INPUT_POST) : $CONFIG['language'],
'timezone' => isset($_POST['_timezone']) ? (is_numeric($_POST['_timezone']) ? floatval($_POST['_timezone']) : get_input_value('_timezone', RCUBE_INPUT_POST)) : $CONFIG['timezone'],
'dst_active' => isset($_POST['_dst_active']) ? TRUE : FALSE,
'pagesize' => is_numeric($_POST['_pagesize']) ? max(2, intval($_POST['_pagesize'])) : $CONFIG['pagesize'],
@@ -61,7 +62,7 @@ else {
// switch UI language
if (isset($_POST['_language'])) {
- $RCMAIL->load_language(get_input_value('_language', RCUBE_INPUT_POST));
+ $RCMAIL->load_language($a_user_prefs['language']);
}
// switch skin