diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-07 19:33:07 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-07 19:33:07 +0000 |
| commit | 640151ec12ea796fe09648568934b04d589f3f7b (patch) | |
| tree | 6db46503275f4d8445d0c8c242edef9b7420979e /roundcubemail/program/include | |
| parent | 895288d7eded73a079204c58edd1cb80c5eab8c7 (diff) | |
-segfault (#1485109)
git-svn-id: https://svn.roundcube.net/trunk@1492 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 6352f80f8..0b5bcdb95 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -188,8 +188,8 @@ class rcmail } // try the first two chars else if (!isset($rcube_languages[$lang])) { - $short = $this->language_prop(substr($lang, 0, 2)); - + $short = substr($lang, 0, 2); + // check if we have an alias for the short language code if (!isset($rcube_languages[$short]) && isset($rcube_language_aliases[$short])) { $lang = $rcube_language_aliases[$short]; |
