1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/11162] Add includes.

PHPBB3-11162
This commit is contained in:
Oleg Pudeyev 2012-12-04 23:37:14 -05:00
parent 0f96b1aad3
commit abca64b1df
2 changed files with 8 additions and 0 deletions

View File

@ -415,6 +415,10 @@ function merge_topics($forum_id, $topic_ids, $to_topic_id)
$success_msg = 'POSTS_MERGED_SUCCESS';
// Update the topic watch table.
if (!function_exists('phpbb_update_rows_avoiding_duplicates'))
{
include($phpbb_root_path . 'includes/functions_tricky_update.' . $phpEx);
}
phpbb_update_rows_avoiding_duplicates($db, TOPICS_WATCH_TABLE, 'topic_id', $topic_ids, $to_topic_id);
// Link to the new topic

View File

@ -620,6 +620,10 @@ function merge_posts($topic_id, $to_topic_id)
else
{
// If the topic no longer exist, we will update the topic watch table.
if (!function_exists('phpbb_update_rows_avoiding_duplicates'))
{
include($phpbb_root_path . 'includes/functions_tricky_update.' . $phpEx);
}
phpbb_update_rows_avoiding_duplicates($db, TOPICS_WATCH_TABLE, 'topic_id', $topic_ids, $to_topic_id);
}