Browse Source

Merge branch 'trunk'

Andy 5 years ago
parent
commit
1efd62df46
1 changed files with 5 additions and 3 deletions
  1. 5 3
      functions/mime.php

+ 5 - 3
functions/mime.php

@@ -603,7 +603,7 @@ function buildAttachmentArray($message, $exclude_id, $mailbox, $id) {
            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, $type1);
+                    &$type0, &$type1);
         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
@@ -611,7 +611,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, &$type1);
         // Do not let a generic plugin change the default link if a more
         // Do not let a generic plugin change the default link if a more
         // specialized one already did it...
         // specialized one already did it...
         if ($defaultlink != $defaultlink_orig) {
         if ($defaultlink != $defaultlink_orig) {
@@ -625,7 +626,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, &$type1);
         // Do not let a generic plugin change the default link if a more
         // Do not let a generic plugin change the default link if a more
         // specialized one already did it...
         // specialized one already did it...
         if ($defaultlink != $defaultlink_orig) {
         if ($defaultlink != $defaultlink_orig) {