From a259636c96ee6009c30a5dc870ccd40ee16aa9b9 Mon Sep 17 00:00:00 2001 From: kink Date: Sat, 8 May 2004 19:32:32 +0000 Subject: [PATCH] use_special_folder_color conf.pl setting works again, closes #931956. This is definately something that should be done in a stylesheet, not like this. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7402 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 3 ++- src/left_main.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f5b749a0..33f88bf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -51,7 +51,8 @@ Version 1.5.1 -- CVS of long format. (only occures in the timeframe around 0:00 AM till timezone). - Added address book sorting options. Ascending/descending sorting code - written by Bryan Loniewski + written by Bryan Loniewski. + - Use Special Folder Color config option works again (#931956). Version 1.5.0 -------------------- diff --git a/src/left_main.php b/src/left_main.php index 48640cbc..505d2bcd 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -298,7 +298,7 @@ function is_parent_box($curbox_name, $parbox_name) { function ListBoxes ($boxes, $j=0 ) { global $data_dir, $username, $startmessage, $color, $unseen_notify, $unseen_type, $move_to_trash, $trash_folder, $collapse_folders, $imapConnection, - $use_icons, $icon_theme; + $use_icons, $icon_theme, $use_special_folder_color; if (!isset($boxes) || empty($boxes)) return; @@ -421,7 +421,7 @@ function ListBoxes ($boxes, $j=0 ) { $font = ''; $fontend = ''; - if ($boxes->is_special) { + if ($use_special_folder_color && $boxes->is_special) { $font = ""; $fontend = ""; } @@ -447,7 +447,7 @@ function ListBoxes ($boxes, $j=0 ) { function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { global $data_dir, $username, $startmessage, $color, $unseen_notify, $unseen_type, - $move_to_trash, $trash_folder, $collapse_folders; + $move_to_trash, $trash_folder, $collapse_folders, $use_special_folder_color; if (!isset($boxes) || empty($boxes)) return; @@ -502,7 +502,7 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { if ($unseen > 0) { $pre .= ''; } /* color special boxes */ - if ($boxes->is_special) { + if ($use_special_folder_color && $boxes->is_special) { $pre .= ""; $end .= ''; } -- 2.25.1