From 63f7fb1ea636c072c0695119a912d7400417705a Mon Sep 17 00:00:00 2001 From: RMcGirr83 Date: Thu, 2 Mar 2017 09:29:39 -0500 Subject: [PATCH 1/2] [ticket/15107] Add message_parser to event https://tracker.phpbb.com/browse/PHPBB3-15107 PHPBB3-15107 --- phpBB/includes/functions_content.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index 8858d1a307..b71d97eefb 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -679,9 +679,11 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb * @var string uid The BBCode UID * @var string bitfield The BBCode Bitfield * @var int flags The BBCode Flags + * @var string message_parser The message_parser object * @since 3.1.0-a1 + * @change 3.1.11-RC1 */ - $vars = array('text', 'uid', 'bitfield', 'flags'); + $vars = array('text', 'uid', 'bitfield', 'flags', 'message_parser'); extract($phpbb_dispatcher->trigger_event('core.modify_text_for_storage_after', compact($vars))); return $message_parser->warn_msg; From d7c417de69397b76e7598e66d7cd4d6c36853ac1 Mon Sep 17 00:00:00 2001 From: Richard McGirr Date: Tue, 7 Mar 2017 06:35:01 -0500 Subject: [PATCH 2/2] [ticket/15107] Add message_parser to event https://tracker.phpbb.com/browse/PHPBB3-15107 PHPBB3-15107 --- phpBB/includes/functions_content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index b71d97eefb..f671f33ed0 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -681,7 +681,7 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb * @var int flags The BBCode Flags * @var string message_parser The message_parser object * @since 3.1.0-a1 - * @change 3.1.11-RC1 + * @changed 3.1.11-RC1 Added message_parser to vars */ $vars = array('text', 'uid', 'bitfield', 'flags', 'message_parser'); extract($phpbb_dispatcher->trigger_event('core.modify_text_for_storage_after', compact($vars)));