diff options
author | javiexin <javiexin@gmail.com> | 2015-05-28 14:39:22 +0200 |
---|---|---|
committer | javiexin <javiexin@gmail.com> | 2015-05-28 14:39:22 +0200 |
commit | e80bb565ce3cecbb30880e626afd614a83292616 (patch) | |
tree | 015ac3c61508accee1b514cfee7e6c014c400069 | |
parent | 6e0d12094abed711e4c50d0d9d62de9d425673fd (diff) | |
download | forums-e80bb565ce3cecbb30880e626afd614a83292616.tar forums-e80bb565ce3cecbb30880e626afd614a83292616.tar.gz forums-e80bb565ce3cecbb30880e626afd614a83292616.tar.bz2 forums-e80bb565ce3cecbb30880e626afd614a83292616.tar.xz forums-e80bb565ce3cecbb30880e626afd614a83292616.zip |
[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
-rw-r--r-- | phpBB/posting.php | 3 |
1 files changed, 2 insertions, 1 deletions
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', |