From ad648d4c60bc23ce7fad4c8ff38fdd8c54db3603 Mon Sep 17 00:00:00 2001 From: tokul Date: Sat, 5 Aug 2006 04:33:43 +0000 Subject: [PATCH] add purge link when folder contains subfolders. Issue does not apply to 1.4.7 (code checks for parent tag) or default_advanced template (purge link always visible above folder tree). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11468 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 6 ++++-- templates/default/left_main.tpl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f148143..d0c7e52d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -119,9 +119,11 @@ Version 1.5.2 - CVS management page in order to allow rename and delete operations with subfolders (#1460011). - Trash subfolders are allowed in courier. INBOX.Trash is not treated - as special on Courier, unless some SquirrelMail configuration options - mark this folder as special (#1354393). Configtest utility should + as special on Courier, unless some SquirrelMail configuration option + marks this folder as special (#1354393). Configtest utility should display warning, if Courier IMAP XMAGICTRASH extension is detected. + - Show purge link for Trash folder without any messages, if folder has + subfolders (#1413569). Version 1.5.1 (branched on 2006-02-12) -------------------------------------- diff --git a/templates/default/left_main.tpl b/templates/default/left_main.tpl index 9fb938ab..becdde50 100644 --- a/templates/default/left_main.tpl +++ b/templates/default/left_main.tpl @@ -188,7 +188,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { $end .= ''; // Print unread info - if ($box['MessageCount'] > 0) { + if ($box['MessageCount'] > 0 || count($box['ChildBoxes'])) { if (!empty($unseen_str)) { $end .= ' ('.$unseen_str.')'; } -- 2.25.1