mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-30 04:38:21 +02:00
[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
This commit is contained in:
parent
6e0d12094a
commit
e80bb565ce
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user