aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-28 22:37:00 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-10-28 22:37:00 +0100
commited602857e6c5aee7b9958a3dbc9285c309b33420 (patch)
treee211654e337fa1b32d621d8269c637b0d2d55196 /phpBB/includes
parent4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c (diff)
downloadforums-ed602857e6c5aee7b9958a3dbc9285c309b33420.tar
forums-ed602857e6c5aee7b9958a3dbc9285c309b33420.tar.gz
forums-ed602857e6c5aee7b9958a3dbc9285c309b33420.tar.bz2
forums-ed602857e6c5aee7b9958a3dbc9285c309b33420.tar.xz
forums-ed602857e6c5aee7b9958a3dbc9285c309b33420.zip
[feature/soft-delete] Correctly increase topics post counts when posting
PHPBB3-9567
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_posting.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 473149a8ec..807b178a4c 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1879,6 +1879,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
'topic_last_view_time' => $current_time,
'forum_id' => $data['forum_id'],
'icon_id' => $data['icon_id'],
+ 'topic_posts' => ($post_visibility == ITEM_APPROVED) ? 1 : 0,
+ 'topic_posts_softdeleted' => ($post_visibility != ITEM_APPROVED) ? 1 : 0,
'topic_visibility' => $post_visibility,
'topic_delete_user' => ($post_visibility != ITEM_APPROVED) ? (int) $user->data['user_id'] : 0,
'topic_title' => $subject,