From 8abe5485fd797ee17a6da13ebec7b6d7a3411b92 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 9 Dec 2009 09:30:37 +0000 Subject: - move compose_message_body hook to better place (#1486353) --- program/steps/mail/compose.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'program') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 999242c1a..842f28c60 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -444,13 +444,12 @@ function rcmail_compose_body($attrib) // load draft message body else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) $body = rcmail_create_draft_body($body, $isHtml); - - $plugin = $RCMAIL->plugins->exec_hook('message_compose_body', - array('body' => $body, 'html' => $isHtml, 'mode' => $compose_mode)); - - $body = $plugin['body']; } + $plugin = $RCMAIL->plugins->exec_hook('message_compose_body', + array('body' => $body, 'html' => $isHtml, 'mode' => $compose_mode)); + $body = $plugin['body']; + $out = $form_start ? "$form_start\n" : ''; $saveid = new html_hiddenfield(array('name' => '_draft_saveid', 'value' => $compose_mode==RCUBE_COMPOSE_DRAFT ? str_replace(array('<','>'), "", $MESSAGE->headers->messageID) : '')); -- cgit v1.2.3