Parcourir la source

Attachment hook has the filename sent.

Tyler Akins il y a 25 ans
Parent
commit
66e359c340
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 3 2
      doc/plugin.txt
  2. 1 1
      functions/mime.php

+ 3 - 2
doc/plugin.txt

@@ -221,8 +221,9 @@ This is a breakdown of the data passed in the array to the hook that is called:
   [4] = Mailbox name, urlencode()'d (urlMailbox)
   [5] = Entity ID inside mail message (ent)
   [6] = Default URL to go to when filename is clicked on (Alterable)
-  [7] = Sent if message was found from a search (where)
-  [8] = Sent if message was found from a search (what)
+  [7] = Filename that is displayed for the attachment
+  [8] = Sent if message was found from a search (where)
+  [9] = Sent if message was found from a search (what)
   
 To set up links for actions, you assign them like this:
   

+ 1 - 1
functions/mime.php

@@ -521,7 +521,7 @@
                
                $HookResults = do_hook("attachment $type0/$type1", $Links,
                    $startMessage, $id, $urlMailbox, $ent, $DefaultLink, 
-                   $where, $what);
+                   $display_filename, $where, $what);
 
                $Links = $HookResults[1];
                $DefaultLink = $HookResults[6];