mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
5ac8059bad
1 changed files with 12 additions and 0 deletions
|
@ -1327,6 +1327,18 @@ function mcp_fork_topic($topic_ids)
|
||||||
'poll_vote_change' => (int) $topic_row['poll_vote_change'],
|
'poll_vote_change' => (int) $topic_row['poll_vote_change'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Perform actions before forked topic is created.
|
||||||
|
*
|
||||||
|
* @event core.mcp_main_modify_fork_sql
|
||||||
|
* @var array sql_ary SQL array to be used by $db->sql_build_array
|
||||||
|
* @since 3.1.11-RC1
|
||||||
|
*/
|
||||||
|
$vars = array(
|
||||||
|
'sql_ary',
|
||||||
|
);
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.mcp_main_modify_fork_sql', compact($vars)));
|
||||||
|
|
||||||
$db->sql_query('INSERT INTO ' . TOPICS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
|
$db->sql_query('INSERT INTO ' . TOPICS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
|
||||||
$new_topic_id = $db->sql_nextid();
|
$new_topic_id = $db->sql_nextid();
|
||||||
$new_topic_id_list[$topic_id] = $new_topic_id;
|
$new_topic_id_list[$topic_id] = $new_topic_id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue