summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-12-04 14:10:47 +0000
committeralecpl <alec@alec.pl>2008-12-04 14:10:47 +0000
commit64c9b5b13ab09dd6de2fed427395e0c5a1056c0c (patch)
tree711629a1faf237cd3bd2b2501c434c4263503e1c /program/include
parent7f450630cc5be210c5d474f8b652c1fca1170f18 (diff)
#1485602: fix INBOX folder localization
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc11
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';
}