Przeglądaj źródła

Give plugins something to work with

pdontthink 17 lat temu
rodzic
commit
a8fb2585fa
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      functions/mailbox_display.php

+ 4 - 2
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.");
             }