summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-11-18 15:47:00 +0000
committerthomascube <thomas@roundcube.net>2005-11-18 15:47:00 +0000
commit5bc8cb662fc3bcda9aa641b7a5e88c0b81dd63d6 (patch)
treed0916876345f1f52e545aa0f07f3a01bff4a9616 /program/include
parentfbf77b4493f1b77c99751d8a86365c712ae3fb1b (diff)
Minor bugfixes
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 936cad388..ddb42181a 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -231,7 +231,7 @@ function get_table_name($table)
// init output object for GUI and add common scripts
function load_gui()
{
- global $CONFIG, $OUTPUT, $COMM_PATH, $JS_OBJECT_NAME, $sess_user_lang;
+ global $CONFIG, $OUTPUT, $COMM_PATH, $JS_OBJECT_NAME, $CHARSET, $sess_user_lang;
// init output page
$OUTPUT = new rcube_html_page();
@@ -248,8 +248,11 @@ function load_gui()
$OUTPUT->include_script('program/js/app.js');
// set user-selected charset
- if ($CONFIG['charset'])
+ if (!empty($CONFIG['charset']))
+ {
$OUTPUT->set_charset($CONFIG['charset']);
+ $CHARSET = $CONFIG['charset'];
+ }
else
rcmail_set_locale($sess_user_lang);