summaryrefslogtreecommitdiff
path: root/program/steps/settings/save_prefs.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-05-07 09:38:44 +0000
committerthomascube <thomas@roundcube.net>2008-05-07 09:38:44 +0000
commit1854c4525bf1fce227a8cc0fa8aad06615df0eae (patch)
tree8af3b7c4ebcd34d037337688828f5091c1c39149 /program/steps/settings/save_prefs.inc
parenteb774cc6eb2818a1bdeae6c316024f93c2533d4e (diff)
More code cleanup + oop-ization
Diffstat (limited to 'program/steps/settings/save_prefs.inc')
-rw-r--r--program/steps/settings/save_prefs.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc
index 8025ad8ed..53408f57d 100644
--- a/program/steps/settings/save_prefs.inc
+++ b/program/steps/settings/save_prefs.inc
@@ -38,8 +38,9 @@ foreach ((array)$CONFIG['dont_override'] as $p)
// switch UI language
-if (isset($_POST['_language']))
- $_SESSION['language'] = get_input_value('_language', RCUBE_INPUT_POST);
+if (isset($_POST['_language'])) {
+ $RCMAIL->load_language(get_input_value('_language', RCUBE_INPUT_POST));
+}
// force min size
if ($a_user_prefs['pagesize'] < 1)