From b77cbccc458eb069474c7a114c4bfe7b30aabb07 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 11 Jul 2008 08:01:46 +0000 Subject: [PATCH] Give plugins something to work with git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13231 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index fecbefe9..cf4e9332 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1381,7 +1381,8 @@ function handleMessageListForm($imapConnection, &$aMailbox, $sButton='', break; default: // Hook for plugin buttons - do_hook('mailbox_display_button_action', $aUid); + $temp = array(&$sButton, &$aUid); + do_hook('mailbox_display_button_action', $temp); break; } /** @@ -1496,7 +1497,8 @@ function handleMessageListForm($imapConnection, &$aMailbox, $sButton='', // know this was not an erroneous user action // global $null; - if (!boolean_hook_function('mailbox_display_button_action', $null, 1) + $temp = array(&$sButton, $null); + if (!boolean_hook_function('mailbox_display_button_action', $temp, 1) && $sButton) { $sError = _("No messages were selected."); } -- 2.25.1