From e80bb565ce3cecbb30880e626afd614a83292616 Mon Sep 17 00:00:00 2001 From: javiexin Date: Thu, 28 May 2015 14:39:22 +0200 Subject: [ticket/13795] Modify core event in posting to include poll data Modified the core.posting_modify_template_vars event in posting.php to extend the content of the page_data array to include poll data. That required moving the event and merging the new set of template vars. Also include the poll variable in the parameter list for event core.posting_modify_submission_errors, as it was missing, and any modification here on post_data for poll related data is silently ignored. Added correct @change tags to both events. PHPBB3-13795 --- phpBB/posting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 1ee4e0c22a..2d44e0b6e7 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1249,6 +1249,7 @@ if ($submit || $preview || $refresh) * @var array error Any error strings; a non-empty array aborts form submission. * NOTE: Should be actual language strings, NOT language keys. * @since 3.1.0-RC5 + * @change 3.1.5-RC1 Added poll array to the event */ $vars = array( 'post_data', @@ -1848,7 +1849,7 @@ if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_ * post_id, topic_id, forum_id, submit, preview, save, load, * delete, cancel, refresh, error, page_data, message_parser * @change 3.1.2-RC1 Removed 'delete' var as it does not exist -* @change 3.1.4-RC1 Added poll variables to the page_data array +* @change 3.1.5-RC1 Added poll variables to the page_data array */ $vars = array( 'post_data', -- cgit v1.2.1