1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-17 22:11:26 +02:00

Merge branch '3.2.x'

This commit is contained in:
Máté Bartus
2017-09-07 14:39:03 +02:00
9 changed files with 113 additions and 8 deletions

View File

@@ -547,6 +547,27 @@ if ($post_data['poll_start'])
$db->sql_freeresult($result);
}
/**
* This event allows you to modify the post data before parsing
*
* @event core.posting_modify_post_data
* @var int forum_id ID of the forum
* @var string mode What action to take if the form has been submitted
* post|reply|quote|edit|delete|bump|smilies|popup
* @var array post_data Array with post data
* @var int post_id ID of the post
* @var int topic_id ID of the topic
* @since 3.2.2-RC1
*/
$vars = array(
'forum_id',
'mode',
'post_data',
'post_id',
'topic_id',
);
extract($phpbb_dispatcher->trigger_event('core.posting_modify_post_data', compact($vars)));
if ($mode == 'edit')
{
$original_poll_data = array(