mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge branch '3.1.x' into 3.2.x
This commit is contained in:
commit
dbd003a0d1
1 changed files with 13 additions and 1 deletions
|
@ -470,7 +470,7 @@ function change_topic_type($action, $topic_ids)
|
||||||
*/
|
*/
|
||||||
function mcp_move_topic($topic_ids)
|
function mcp_move_topic($topic_ids)
|
||||||
{
|
{
|
||||||
global $auth, $user, $db, $template, $phpbb_log, $request;
|
global $auth, $user, $db, $template, $phpbb_log, $request, $phpbb_dispatcher;
|
||||||
global $phpEx, $phpbb_root_path;
|
global $phpEx, $phpbb_root_path;
|
||||||
|
|
||||||
// Here we limit the operation to one forum only
|
// Here we limit the operation to one forum only
|
||||||
|
@ -632,6 +632,18 @@ function mcp_move_topic($topic_ids)
|
||||||
'poll_last_vote' => (int) $row['poll_last_vote']
|
'poll_last_vote' => (int) $row['poll_last_vote']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Perform actions before shadow topic is created.
|
||||||
|
*
|
||||||
|
* @event core.mcp_main_modify_shadow_sql
|
||||||
|
* @var array shadow SQL array to be used by $db->sql_build_array
|
||||||
|
* @since 3.1.11-RC1
|
||||||
|
*/
|
||||||
|
$vars = array(
|
||||||
|
'shadow',
|
||||||
|
);
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.mcp_main_modify_shadow_sql', compact($vars)));
|
||||||
|
|
||||||
$db->sql_query('INSERT INTO ' . TOPICS_TABLE . $db->sql_build_array('INSERT', $shadow));
|
$db->sql_query('INSERT INTO ' . TOPICS_TABLE . $db->sql_build_array('INSERT', $shadow));
|
||||||
|
|
||||||
// Shadow topics only count on new "topics" and not posts... a shadow topic alone has 0 posts
|
// Shadow topics only count on new "topics" and not posts... a shadow topic alone has 0 posts
|
||||||
|
|
Loading…
Add table
Reference in a new issue