aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_topic.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-10-11 15:16:05 +0000
committerChris Smith <toonarmy@phpbb.com>2008-10-11 15:16:05 +0000
commit40bfc3d361e7efa95533833359b123c3d49364e2 (patch)
tree0f2fc4f191d63b7da05fc9f4ff0719ec7ee1eaf1 /phpBB/includes/mcp/mcp_topic.php
parent47116ed862a4918844b8e7e4969e56ee5a7d0952 (diff)
downloadforums-40bfc3d361e7efa95533833359b123c3d49364e2.tar
forums-40bfc3d361e7efa95533833359b123c3d49364e2.tar.gz
forums-40bfc3d361e7efa95533833359b123c3d49364e2.tar.bz2
forums-40bfc3d361e7efa95533833359b123c3d49364e2.tar.xz
forums-40bfc3d361e7efa95533833359b123c3d49364e2.zip
Increase board topic counter when splitting topics. #32125
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8999 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-rw-r--r--phpBB/includes/mcp/mcp_topic.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php
index b0fa5fe704..9fabc41803 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -493,6 +493,9 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
$success_msg = 'TOPIC_SPLIT_SUCCESS';
+ // Update forum statistics
+ set_config('num_topics', $config['num_topics'] + 1, true);
+
// Link back to both topics
$return_link = sprintf($user->lang['RETURN_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $post_info['forum_id'] . '&amp;t=' . $post_info['topic_id']) . '">', '</a>') . '<br /><br />' . sprintf($user->lang['RETURN_NEW_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $to_forum_id . '&amp;t=' . $to_topic_id) . '">', '</a>');
}