mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/8610] Add some comments
PHPBB3-8610
This commit is contained in:
parent
5a88bd1bf1
commit
71bcc58fee
2 changed files with 4 additions and 0 deletions
|
@ -1231,6 +1231,7 @@ function mcp_fork_topic($topic_ids)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy topic subscriptions to new topic
|
||||||
$sql = 'SELECT user_id, notify_status
|
$sql = 'SELECT user_id, notify_status
|
||||||
FROM ' . TOPICS_WATCH_TABLE . '
|
FROM ' . TOPICS_WATCH_TABLE . '
|
||||||
WHERE topic_id = ' . $topic_id;
|
WHERE topic_id = ' . $topic_id;
|
||||||
|
@ -1252,6 +1253,7 @@ function mcp_fork_topic($topic_ids)
|
||||||
$db->sql_multi_insert(TOPICS_WATCH_TABLE, $sql_ary);
|
$db->sql_multi_insert(TOPICS_WATCH_TABLE, $sql_ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy bookmarks to new topic
|
||||||
$sql = 'SELECT user_id
|
$sql = 'SELECT user_id
|
||||||
FROM ' . BOOKMARKS_TABLE . '
|
FROM ' . BOOKMARKS_TABLE . '
|
||||||
WHERE topic_id = ' . $topic_id;
|
WHERE topic_id = ' . $topic_id;
|
||||||
|
|
|
@ -523,6 +523,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||||
WHERE post_id = {$post_id_list[0]}";
|
WHERE post_id = {$post_id_list[0]}";
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
|
// Copy topic subscriptions to new topic
|
||||||
$sql = 'SELECT user_id, notify_status
|
$sql = 'SELECT user_id, notify_status
|
||||||
FROM ' . TOPICS_WATCH_TABLE . '
|
FROM ' . TOPICS_WATCH_TABLE . '
|
||||||
WHERE topic_id = ' . $topic_id;
|
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);
|
$db->sql_multi_insert(TOPICS_WATCH_TABLE, $sql_ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy bookmarks to new topic
|
||||||
$sql = 'SELECT user_id
|
$sql = 'SELECT user_id
|
||||||
FROM ' . BOOKMARKS_TABLE . '
|
FROM ' . BOOKMARKS_TABLE . '
|
||||||
WHERE topic_id = ' . $topic_id;
|
WHERE topic_id = ' . $topic_id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue