summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-12-06 08:02:29 +0000
committeralecpl <alec@alec.pl>2009-12-06 08:02:29 +0000
commitceeab9ed917f63af9511299540339fd170a90a85 (patch)
tree938bf8fa1413426375f70a989b2b9b4d3a898c62 /program/steps
parenta82dcd420a0b5266c543aa184fc0628f823e1d9f (diff)
- Allow setting only selected params in 'message_compose' hook (#1486312)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 2236d5f57..a441e00b6 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -55,8 +55,8 @@ if (!is_array($_SESSION['compose']) || $_SESSION['compose']['id'] != get_input_v
// pipe compose parameters thru plugins
$plugin = $RCMAIL->plugins->exec_hook('message_compose', $_SESSION['compose']);
- $_SESSION['compose']['param'] = $plugin['param'];
-
+ $_SESSION['compose']['param'] = array_merge($_SESSION['compose']['param'], $plugin['param']);
+
// add attachments listed by message_compose hook
if (is_array($plugin['attachments'])) {
foreach ($plugin['attachments'] as $attach) {