diff options
author | alecpl <alec@alec.pl> | 2008-12-04 14:10:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-12-04 14:10:47 +0000 |
commit | 64c9b5b13ab09dd6de2fed427395e0c5a1056c0c (patch) | |
tree | 711629a1faf237cd3bd2b2501c434c4263503e1c /program/include/main.inc | |
parent | 7f450630cc5be210c5d474f8b652c1fca1170f18 (diff) |
#1485602: fix INBOX folder localization
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 3a102ba84..95b167969 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1143,16 +1143,15 @@ function rcmail_folder_classname($folder_id) { global $CONFIG; - $cname = null; - // for these mailboxes we have localized labels and css classes - foreach (array('inbox', 'sent', 'drafts', 'trash', 'junk') as $smbx) + foreach (array('sent', 'drafts', 'trash', 'junk') as $smbx) { if ($folder_id == $CONFIG[$smbx.'_mbox']) - $cname = $smbx; + return $smbx; } - - return $cname; + + if ($folder_id == 'INBOX') + return 'inbox'; } |