summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-08 09:40:39 +0000
committeralecpl <alec@alec.pl>2010-09-08 09:40:39 +0000
commit2aa2b332f6e216ceeabc36ef6b942c40d91bda5a (patch)
tree08a21f5cb3d9f7bc706fa34a73aba37baff9a03c /program/include/rcmail.php
parentec581c106e51a46f4536caec397e2b34821db5de (diff)
- Small performance improvements
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 808f0db06..0a7c15d84 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -810,9 +810,9 @@ class rcmail
if (($attrib['uppercase'] && strtolower($attrib['uppercase']=='first')) || $attrib['ucfirst'])
return ucfirst($text);
else if ($attrib['uppercase'])
- return strtoupper($text);
+ return mb_strtoupper($text);
else if ($attrib['lowercase'])
- return strtolower($text);
+ return mb_strtolower($text);
return $text;
}
@@ -874,7 +874,7 @@ class rcmail
if ($dh = @opendir(INSTALL_PATH . 'program/localization')) {
while (($name = readdir($dh)) !== false) {
- if ($name{0}=='.' || !is_dir(INSTALL_PATH . 'program/localization/' . $name))
+ if ($name[0] == '.' || !is_dir(INSTALL_PATH . 'program/localization/' . $name))
continue;
if ($label = $rcube_languages[$name])