summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-30 14:27:49 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-30 14:27:49 +0200
commitefdbf4a7d9283129f46fc6d1a667588e6bda9805 (patch)
treea5e4754ac45e500f9bb7bb349180465b48e505b8 /program/lib/Roundcube/rcube.php
parent65070fcbf4ce257040dfd06948205fe6f45baf69 (diff)
Support 'error' and 'body_file' return attribs in 'message_before_send' hook (#1489595)
Diffstat (limited to 'program/lib/Roundcube/rcube.php')
-rw-r--r--program/lib/Roundcube/rcube.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php
index 707929951..f2aeda7f0 100644
--- a/program/lib/Roundcube/rcube.php
+++ b/program/lib/Roundcube/rcube.php
@@ -1479,6 +1479,13 @@ class rcube
));
if ($plugin['abort']) {
+ if (!empty($plugin['error'])) {
+ $error = $plugin['error'];
+ }
+ if (!empty($plugin['body_file'])) {
+ $body_file = $plugin['body_file'];
+ }
+
return isset($plugin['result']) ? $plugin['result'] : false;
}