From: pdontthink Date: Mon, 23 Feb 2004 06:55:40 +0000 (+0000) Subject: Fixed up left_main_after_each_folder hook to work for all the different ways of showi... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=8fc208f8d3c00bd457e31425d1f32a6734504496 Fixed up left_main_after_each_folder hook to work for all the different ways of showing the folder list git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6624 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/left_main.php b/src/left_main.php index dda2b3c7..29a689fb 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -101,12 +101,15 @@ function formatMailboxName($imapConnection, $box_array) { $line .= "\n\n" . "  ("._("purge").")" . ""; - } 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 = ""; $fontend = ""; } + + // 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 .= ''; 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) {