1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 01:20:40 +01:00

Merge pull request #5220 from senky/ticket/15662

[ticket/15662] Add $this->template to core.modify_notification_message
This commit is contained in:
Marc Alexander 2018-10-08 21:23:54 +02:00
commit 8bdb2ce6ba
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -327,6 +327,7 @@ class messenger
$subject = $this->subject;
$message = $this->msg;
$template = $this->template;
/**
* Event to modify notification message text before parsing
*
@ -336,13 +337,16 @@ class messenger
* and the message without sending it
* @var string subject The message subject
* @var string message The message text
* @var \phpbb\template\template template Template object
* @since 3.1.11-RC1
* @changed 3.2.4-RC1 Added template
*/
$vars = array(
'method',
'break',
'subject',
'message',
'template',
);
extract($phpbb_dispatcher->trigger_event('core.modify_notification_message', compact($vars)));
$this->subject = $subject;