diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-30 12:27:02 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-12-13 20:23:04 -0600 |
commit | 71bcc58feecd49fe05f6b7e0e2bca8a94424f240 (patch) | |
tree | a2871a0ff57036e986a202aa65ae01279c0430ad /phpBB/includes/mcp/mcp_topic.php | |
parent | 5a88bd1bf103537aece6713145fd13288cf3c329 (diff) | |
download | forums-71bcc58feecd49fe05f6b7e0e2bca8a94424f240.tar forums-71bcc58feecd49fe05f6b7e0e2bca8a94424f240.tar.gz forums-71bcc58feecd49fe05f6b7e0e2bca8a94424f240.tar.bz2 forums-71bcc58feecd49fe05f6b7e0e2bca8a94424f240.tar.xz forums-71bcc58feecd49fe05f6b7e0e2bca8a94424f240.zip |
[ticket/8610] Add some comments
PHPBB3-8610
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index f0775f9137..28f5c6a41d 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -523,6 +523,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject) WHERE post_id = {$post_id_list[0]}"; $db->sql_query($sql); + // Copy topic subscriptions to new topic $sql = 'SELECT user_id, notify_status FROM ' . TOPICS_WATCH_TABLE . ' WHERE topic_id = ' . $topic_id; @@ -544,6 +545,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject) $db->sql_multi_insert(TOPICS_WATCH_TABLE, $sql_ary); } + // Copy bookmarks to new topic $sql = 'SELECT user_id FROM ' . BOOKMARKS_TABLE . ' WHERE topic_id = ' . $topic_id; |