Fixed up left_main_after_each_folder hook to work for all the different ways of showi...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 23 Feb 2004 06:55:40 +0000 (06:55 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 23 Feb 2004 06:55:40 +0000 (06:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6624 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/left_main.php

index dda2b3c..29a689f 100644 (file)
@@ -101,12 +101,15 @@ function formatMailboxName($imapConnection, $box_array) {
             $line .= "\n<small>\n" .
                     "&nbsp;&nbsp;(<A HREF=\"empty_trash.php\" style=\"text-decoration:none\">"._("purge")."</A>)" .
                     "</small>";
-        } else {
-          $line .= concat_hook_function('left_main_after_each_folder',
-                 array(isset($numMessages) ? $numMessages : '',$real_box,$imapConnection));
         }
     }
 
+
+    // let plugins fiddle with end of line
+    $line .= concat_hook_function('left_main_after_each_folder',
+        array(isset($numMessages) ? $numMessages : '', $real_box, $imapConnection));
+
+
     /* Return the final product. */
     return ($line);
 }
@@ -406,6 +409,12 @@ function ListBoxes ($boxes, $j=0 ) {
         $font = "<font color=\"$color[11]\">";
         $fontend = "</font>";
     }
+
+    // let plugins fiddle with end of line
+    $end .= concat_hook_function('left_main_after_each_folder',
+        array(isset($numMessages) ? $numMessages : '', 
+              $boxes->mailboxname_full, $imapConnection));
+
     $end .= '</nobr>';
 
     if (!$boxes->is_root) {
@@ -509,6 +518,12 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) {
         }
     }
 
+    // let plugins fiddle with end of line
+    global $imapConnection;
+    $end .= concat_hook_function('left_main_after_each_folder',
+        array(isset($numMessages) ? $numMessages : '', 
+              $boxes->mailboxname_full, $imapConnection));
+
     if (!$boxes->is_root) {
         if ($use_folder_images) {
             if ($boxes->is_inbox) {