Give plugins something to work with
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 11 Jul 2008 08:01:46 +0000 (08:01 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 11 Jul 2008 08:01:46 +0000 (08:01 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13231 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index fecbefe9755afdaef5b2633813503fe380e32aa2..cf4e93320e2a62c851fe2c0fe6dce4f46633b3c2 100644 (file)
@@ -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.");
             }