diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-08 09:40:39 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-09-08 09:40:39 +0000 |
| commit | 8075033c8f9dae8e12b3e05816c80dd9cdde81b2 (patch) | |
| tree | ca99a4948f96850fdef77aea4e41a515aa46272a /roundcubemail/program/include/rcmail.php | |
| parent | e2f65af45dadd963db66093e75abb92ef0ed128b (diff) | |
- Small performance improvements
git-svn-id: https://svn.roundcube.net/trunk@3946 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 808f0db06..0a7c15d84 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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]) |
