mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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
This commit is contained in:
parent
47116ed862
commit
40bfc3d361
2 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,7 @@
|
||||||
<li>[Fix] Don't show forum subscription link on categories. (Bug #34895)</li>
|
<li>[Fix] Don't show forum subscription link on categories. (Bug #34895)</li>
|
||||||
<li>[Fix] Display a message if no topics or forums are selected when unsubscribing. (Bug #34855)</li>
|
<li>[Fix] Display a message if no topics or forums are selected when unsubscribing. (Bug #34855)</li>
|
||||||
<li>[Fix] Mark/unmark all links in UCP now select/unselect both subscribed topics and forums.</li>
|
<li>[Fix] Mark/unmark all links in UCP now select/unselect both subscribed topics and forums.</li>
|
||||||
|
<li>[Fix] Increase board topic counter when splitting topics. (Bug #32125)</li>
|
||||||
|
|
||||||
<li>[Change] No longer allow the direct use of MULTI_INSERT in sql_build_array. sql_multi_insert() must be used.</li>
|
<li>[Change] No longer allow the direct use of MULTI_INSERT in sql_build_array. sql_multi_insert() must be used.</li>
|
||||||
<li>[Change] Display warning in ACP if config.php file is left writable.</li>
|
<li>[Change] Display warning in ACP if config.php file is left writable.</li>
|
||||||
|
|
|
@ -493,6 +493,9 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||||
|
|
||||||
$success_msg = 'TOPIC_SPLIT_SUCCESS';
|
$success_msg = 'TOPIC_SPLIT_SUCCESS';
|
||||||
|
|
||||||
|
// Update forum statistics
|
||||||
|
set_config('num_topics', $config['num_topics'] + 1, 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", '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>');
|
$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>');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue