From 1943de36f32609b37230da32aa679466043702fe Mon Sep 17 00:00:00 2001 From: Joas Schilling <nickvergessen@gmx.de> Date: Mon, 1 Oct 2012 16:25:05 +0200 Subject: [feature/soft-delete] Comment out user_posts update for the moment It should rely on the permissions of the post not the current user. PHPBB3-9657 --- phpBB/includes/content_visibility.php | 10 ++++++++++ phpBB/includes/mcp/mcp_queue.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/content_visibility.php b/phpBB/includes/content_visibility.php index 165c28f1af..9d2bf34370 100644 --- a/phpBB/includes/content_visibility.php +++ b/phpBB/includes/content_visibility.php @@ -346,10 +346,16 @@ class phpbb_content_visibility set_config_count('num_posts', ($topic_row['topic_replies'] + 1) * (-1), true); // Only decrement this post, since this is the one non-approved now + // + /** + * @todo: this is wrong, it should rely on post_postcount + * also a user might have more than one post in the topic + * if ($auth->acl_get('f_postcount', $forum_id)) { $sql_data[USERS_TABLE] = 'user_posts = user_posts - 1'; } + */ } /** @@ -383,10 +389,14 @@ class phpbb_content_visibility set_config_count('num_posts', -1, true); + /** + * @todo: this is wrong, it should rely on post_postcount + * if ($auth->acl_get('f_postcount', $forum_id)) { $sql_data[USERS_TABLE] = 'user_posts = user_posts - 1'; } + */ } /** diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 3b18b7f0e7..b1b4ea99aa 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -465,7 +465,7 @@ class mcp_queue /** -* Approve Post/Topic +* Restore Post/Topic */ function restore_post($post_id_list, $id, $mode) { -- cgit v1.2.1