- Allow setting only selected params in 'message_compose' hook (#1486312)

release-0.6
alecpl 15 years ago
parent a82dcd420a
commit ceeab9ed91

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Allow setting only selected params in 'message_compose' hook (#1486312)
- Plugin API: added 'message_compose_body' hook (#1486285) - Plugin API: added 'message_compose_body' hook (#1486285)
- Fix counters of all folders are checked in 'getunread' action with check_all_folders disabled (#1486128) - Fix counters of all folders are checked in 'getunread' action with check_all_folders disabled (#1486128)
- Fix displaying alternative parts in messages of type message/rfc822 (#1486246) - Fix displaying alternative parts in messages of type message/rfc822 (#1486246)

@ -55,8 +55,8 @@ if (!is_array($_SESSION['compose']) || $_SESSION['compose']['id'] != get_input_v
// pipe compose parameters thru plugins // pipe compose parameters thru plugins
$plugin = $RCMAIL->plugins->exec_hook('message_compose', $_SESSION['compose']); $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 // add attachments listed by message_compose hook
if (is_array($plugin['attachments'])) { if (is_array($plugin['attachments'])) {
foreach ($plugin['attachments'] as $attach) { foreach ($plugin['attachments'] as $attach) {

Loading…
Cancel
Save