diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-30 12:03:43 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-30 12:03:43 +0000 |
commit | 2e63b9b0667c27ce1edc7fb015300a0d97933ead (patch) | |
tree | ff41e1ef00c90415680ecfebf56f3e53eb0a33ff | |
parent | a3cbc3d671b9941e0859bd5e5694a115fde59a57 (diff) | |
download | forums-2e63b9b0667c27ce1edc7fb015300a0d97933ead.tar forums-2e63b9b0667c27ce1edc7fb015300a0d97933ead.tar.gz forums-2e63b9b0667c27ce1edc7fb015300a0d97933ead.tar.bz2 forums-2e63b9b0667c27ce1edc7fb015300a0d97933ead.tar.xz forums-2e63b9b0667c27ce1edc7fb015300a0d97933ead.zip |
Do not increment users post count after post approval if post had been posted in a forum with no post count increasing set (Bug #37865)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9133 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index dad0e468d7..1684814d6b 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -97,6 +97,7 @@ <li>[Fix] Make searching for members by YIM address work in prosilver</li> <li>[Fix] Tell users to recreate the search index after changing the common word threshold for fulltext_native (Bug #36345)</li> <li>[Fix] Adjusted phpbb_chmod() to always set permissions for group bit.</li> + <li>[Fix] Do not increment users post count after post approval if post had been posted in a forum with no post count increasing set (Bug #37865)</li> <li>[Change] Alllow applications to set custom module inclusion path (idea by HoL)</li> <li>[Change] Handle checking for duplicate usernames in chunks (Bug #17285 - Patch by A_Jelly_Doughnut)</li> <li>[Change] Better handling and finer control for custom profile fields visibility options. (Patch by Highway of Life)</li> diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 1e368c4fc6..aa77dbdf16 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -505,8 +505,12 @@ function approve_post($post_id_list, $id, $mode) $forum_id_list[$post_data['forum_id']] = 1; } - // User post update (we do not care about topic or post, since user posts are strictly connected to posts - $user_posts_sql[$post_data['poster_id']] = (empty($user_posts_sql[$post_data['poster_id']])) ? 1 : $user_posts_sql[$post_data['poster_id']] + 1; + // User post update (we do not care about topic or post, since user posts are strictly connected to posts) + // But we care about forums where post counts get not increased. ;) + if ($post_data['post_postcount']) + { + $user_posts_sql[$post_data['poster_id']] = (empty($user_posts_sql[$post_data['poster_id']])) ? 1 : $user_posts_sql[$post_data['poster_id']] + 1; + } // Topic or Post. ;) if ($post_data['topic_first_post_id'] == $post_id) |