diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-11-20 15:23:16 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-11-20 15:23:16 +0100 |
commit | dbd9c1f242ae7c7660feddf2677d41aa82bd21b4 (patch) | |
tree | 2fed05e167bc02ecbb23c53086972a2db4b6156d /phpBB/includes/functions_messenger.php | |
parent | d98fd7868ba75773fe89617f324f8516f63dfa16 (diff) | |
parent | 6984f17f62b507860774876abc098cc0218b5dea (diff) | |
download | forums-dbd9c1f242ae7c7660feddf2677d41aa82bd21b4.tar forums-dbd9c1f242ae7c7660feddf2677d41aa82bd21b4.tar.gz forums-dbd9c1f242ae7c7660feddf2677d41aa82bd21b4.tar.bz2 forums-dbd9c1f242ae7c7660feddf2677d41aa82bd21b4.tar.xz forums-dbd9c1f242ae7c7660feddf2677d41aa82bd21b4.zip |
Merge pull request #4502 from rxu/ticket/14852
[ticket/14852] Add core event to modify email headers
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r-- | phpBB/includes/functions_messenger.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 9b3ca14101..f141637fb9 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -438,7 +438,7 @@ class messenger */ function build_header($to, $cc, $bcc) { - global $config; + global $config, $phpbb_dispatcher; // We could use keys here, but we won't do this for 3.0.x to retain backwards compatibility $headers = array(); @@ -470,6 +470,16 @@ class messenger $headers[] = 'X-MimeOLE: phpBB3'; $headers[] = 'X-phpBB-Origin: phpbb://' . str_replace(array('http://', 'https://'), array('', ''), generate_board_url()); + /** + * Event to modify email header entries + * + * @event core.modify_email_headers + * @var array headers Array containing email header entries + * @since 3.1.11-RC1 + */ + $vars = array('headers'); + extract($phpbb_dispatcher->trigger_event('core.modify_email_headers', compact($vars))); + if (sizeof($this->extra_headers)) { $headers = array_merge($headers, $this->extra_headers); |