mergePosts
Description
Handles merging posts from one topic into another topic.
Syntax
void mergePosts ([array $msgs, int $from_topic, int $target_topic])
Parameter $msgs
Expected type: Array of Integers
Description: An array containing the IDs of the posts to be merged
Parameter $from_topic
Expected type: Integer
Description: The ID of the topic that the posts were originally in
Parameter $target_topic
Expected type: Integer
Description: The ID of the topic that the posts will be merged into
Notes
- Handles all statistics-related items
- Deletes the "from topic" if it no longer has any posts
- Updates post counts as needed