From: pdontthink Date: Fri, 11 Jul 2008 09:15:16 +0000 (+0000) Subject: Plugins have to be able to update the message cache if they manipulate messages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c1c0ce3ea913ecc18feadf46d31d0416586dc215;p=squirrelmail.git Plugins have to be able to update the message cache if they manipulate messages git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13232 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index cf4e9332..1468e80f 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1381,7 +1381,7 @@ function handleMessageListForm($imapConnection, &$aMailbox, $sButton='', break; default: // Hook for plugin buttons - $temp = array(&$sButton, &$aUid); + $temp = array(&$sButton, &$aMailbox, $iAccount, $aMailbox['NAME'], &$aUid); do_hook('mailbox_display_button_action', $temp); break; } @@ -1497,7 +1497,7 @@ function handleMessageListForm($imapConnection, &$aMailbox, $sButton='', // know this was not an erroneous user action // global $null; - $temp = array(&$sButton, $null); + $temp = array(&$sButton, &$aMailbox, $iAccount, $aMailbox['NAME'], $null); if (!boolean_hook_function('mailbox_display_button_action', $temp, 1) && $sButton) { $sError = _("No messages were selected.");