mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/13364] Force sync forum after splitting topic
PHPBB3-13364
This commit is contained in:
parent
e11c11ac9d
commit
b0d976f462
1 changed files with 1 additions and 0 deletions
|
@ -732,6 +732,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||||
|
|
||||||
// Update forum statistics
|
// Update forum statistics
|
||||||
$config->increment('num_topics', 1, false);
|
$config->increment('num_topics', 1, false);
|
||||||
|
sync('forum', 'forum_id', [$to_forum_id], true, true);
|
||||||
|
|
||||||
// Link back to both topics
|
// Link back to both topics
|
||||||
$return_link = sprintf($user->lang['RETURN_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $post_info['topic_id']) . '">', '</a>') . '<br /><br />' . sprintf($user->lang['RETURN_NEW_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $to_topic_id) . '">', '</a>');
|
$return_link = sprintf($user->lang['RETURN_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $post_info['topic_id']) . '">', '</a>') . '<br /><br />' . sprintf($user->lang['RETURN_NEW_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $to_topic_id) . '">', '</a>');
|
||||||
|
|
Loading…
Add table
Reference in a new issue