summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-09 12:54:21 +0000
committeralecpl <alec@alec.pl>2008-10-09 12:54:21 +0000
commitd99b9356c3d59c1eb3d0a05216d119daefaf28e3 (patch)
treee651138de125dc5310f70c11aaa9fa762ee5388d /program/include/main.inc
parent70087c52bc89879b8b42c422392aecf3976bbb08 (diff)
- set mbstring's internal encoding in proper place
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 0214d32f1..9223e26f8 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -207,12 +207,10 @@ function rcube_charset_convert($str, $from, $to=NULL)
}
}
- // settings for mbstring module (by Tadashi Jokagi)
- if (is_null($mbstring_loaded)) {
- if ($mbstring_loaded = extension_loaded("mbstring"))
- mb_internal_encoding(RCMAIL_CHARSET);
- }
+ if (is_null($mbstring_loaded))
+ $mbstring_loaded = extension_loaded('mbstring');
+
// convert charset using mbstring module
if ($mbstring_loaded)
{