From 9c3b2d22dd7b0e1453c3c75df0b1650ef5a657ff Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 6 Jan 2008 06:10:00 +0000 Subject: [PATCH] avoid E_STRICT errors git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12879 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index f2e111c8..735115d9 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -566,27 +566,27 @@ function buildAttachmentArray($message, $exclude_id, $mailbox, $id) { argument, and arguments are passed by reference, so instead of returning any changes, changes should simply be made to the original arguments themselves. */ - do_hook("attachment $type0/$type1", $temp=array(&$links, - &$startMessage, &$id, &$urlMailbox, &$ent, &$defaultlink, - &$display_filename, &$where, &$what)); + $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, + &$defaultlink, &$display_filename, &$where, &$what); + do_hook("attachment $type0/$type1", $temp); if(count($links) <= 1) { /* 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 argument, and arguments are passed by reference, so instead of returning any changes, changes should simply be made to the original arguments themselves. */ - do_hook("attachment $type0/*", $temp=array(&$links, - &$startMessage, &$id, &$urlMailbox, &$ent, &$defaultlink, - &$display_filename, &$where, &$what)); + $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, + &$defaultlink, &$display_filename, &$where, &$what); + do_hook("attachment $type0/*", $temp); } /* 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 argument, and arguments are passed by reference, so instead of returning any changes, changes should simply be made to the original arguments themselves. */ - do_hook("attachment */*", $temp=array(&$links, - &$startMessage, &$id, &$urlMailbox, &$ent, &$defaultlink, - &$display_filename, &$where, &$what)); + $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, + &$defaultlink, &$display_filename, &$where, &$what); + do_hook("attachment */*", $temp); $this_attachment = array(); $this_attachment['Name'] = decodeHeader($display_filename); -- 2.25.1