瀏覽代碼

Add MIME type parameters ("type0", "type1") to the end of the plugin arguments for all attachment hooks

pdontthink 5 年之前
父節點
當前提交
eb7f686a56
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      functions/mime.php

+ 2 - 1
functions/mime.php

@@ -598,7 +598,8 @@ function buildAttachmentArray($message, $exclude_id, $mailbox, $id) {
            returning any changes, changes should simply be made to the original
            returning any changes, changes should simply be made to the original
            arguments themselves. */
            arguments themselves. */
         $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent,
         $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent,
-                    &$defaultlink, &$display_filename, &$where, &$what);
+                    &$defaultlink, &$display_filename, &$where, &$what,
+                    $type0, $temp1);
         do_hook("attachment $type0/$type1", $temp);
         do_hook("attachment $type0/$type1", $temp);
         /* The API for this hook has changed as of 1.5.2 so that all plugin
         /* The API for this hook has changed as of 1.5.2 so that all plugin
            arguments are passed in an array instead of each their own plugin
            arguments are passed in an array instead of each their own plugin