diff options
author | Andreas Fischer <bantu@phpbb.com> | 2015-02-03 18:13:20 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2015-02-03 18:13:20 +0100 |
commit | 284aa8c496d658c196a0dfa3c90657415ee4c2ee (patch) | |
tree | 6ea6f60315c6ac672b194ea0e22288d77d7f9815 /phpBB/includes/mcp/mcp_topic.php | |
parent | 3fb6d5b838c33dc31563de7febbe827647f85abc (diff) | |
parent | a633f3484c63fe4bd70df548b3ae4bd569bdef46 (diff) | |
download | forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar.gz forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar.bz2 forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.tar.xz forums-284aa8c496d658c196a0dfa3c90657415ee4c2ee.zip |
Merge pull request #3281 from MGaetan89/ticket/13496
[ticket/13496] Change set_config_count() calls with $config->increment()
* MGaetan89/ticket/13496:
[ticket/13496] Update calls to `set_config_count()`
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 35b4e35a8c..2d4131626f 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -603,7 +603,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject) $success_msg = 'TOPIC_SPLIT_SUCCESS'; // Update forum statistics - set_config_count('num_topics', 1, true); + $config->increment('num_topics', 1, false); // 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'] . '&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 . '&t=' . $to_topic_id) . '">', '</a>'); |