1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/15925] Update events for 3.3.3-RC1

PHPBB3-15925
This commit is contained in:
Marc Alexander
2020-11-28 22:18:49 +01:00
parent 86bbd05608
commit 60d6727974
3 changed files with 23 additions and 21 deletions

View File

@@ -1573,15 +1573,15 @@ function mcp_fork_topic($topic_ids)
* @var array sql_ary SQL Array with the post's data
* @var array row Post data
* @var array counter Array with post counts
* @since 3.2.6-RC1
* @since 3.3.3-RC1
*/
$vars = array(
$vars = [
'new_topic_id',
'to_forum_id',
'sql_ary',
'row',
'counter',
);
];
extract($phpbb_dispatcher->trigger_event('core.mcp_main_modify_fork_post_sql', compact($vars)));
$db->sql_query('INSERT INTO ' . POSTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
$new_post_id = $db->sql_nextid();