浏览代码

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).

tokul 19 年之前
父节点
当前提交
185969483b
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 4 2
      ChangeLog
  2. 1 1
      templates/default/left_main.tpl

+ 4 - 2
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)
 --------------------------------------

+ 1 - 1
templates/default/left_main.tpl

@@ -188,7 +188,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) {
         $end .= '</a>';
 
         // Print unread info
-        if ($box['MessageCount'] > 0) {
+        if ($box['MessageCount'] > 0 || count($box['ChildBoxes'])) {
             if (!empty($unseen_str)) {
                 $end .= '&nbsp;<small>('.$unseen_str.')</small>';
             }