diff options
author | rxu <rxu@mail.ru> | 2016-11-04 18:23:09 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2016-11-04 18:23:09 +0700 |
commit | 6984f17f62b507860774876abc098cc0218b5dea (patch) | |
tree | f8c3059c83ae1355b0c329adfd779b56f8a720e7 /phpBB/includes/functions_messenger.php | |
parent | 85898d3d2c7b5ce61a0f92299e06ceade000c4a8 (diff) | |
download | forums-6984f17f62b507860774876abc098cc0218b5dea.tar forums-6984f17f62b507860774876abc098cc0218b5dea.tar.gz forums-6984f17f62b507860774876abc098cc0218b5dea.tar.bz2 forums-6984f17f62b507860774876abc098cc0218b5dea.tar.xz forums-6984f17f62b507860774876abc098cc0218b5dea.zip |
[ticket/14852] Add core event to modify email headers
PHPBB3-14852
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); |