aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-06 21:02:23 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-06 21:02:23 +0000
commit4de717183632a64c3900221d95881ee23ed10e0d (patch)
tree37c06854e6dd6d8220e89f5a02ed58bbe9c35091 /phpBB/includes/mcp/mcp_queue.php
parent919c1aee53cd16529e10294e5129ed7e477740af (diff)
downloadforums-4de717183632a64c3900221d95881ee23ed10e0d.tar
forums-4de717183632a64c3900221d95881ee23ed10e0d.tar.gz
forums-4de717183632a64c3900221d95881ee23ed10e0d.tar.bz2
forums-4de717183632a64c3900221d95881ee23ed10e0d.tar.xz
forums-4de717183632a64c3900221d95881ee23ed10e0d.zip
Ok, try to fix the "re-approval on edit" bugs. Also added make_clickable to log entries as well as logging moderator edits.
git-svn-id: file:///svn/phpbb/trunk@7491 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index 03347101e0..03ca9994fc 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -479,6 +479,14 @@ function approve_post($post_id_list, $id, $mode)
$total_posts++;
$forum_topics_posts[$post_data['forum_id']]['forum_posts']++;
+
+ // Increment by topic_replies if we approve a topic...
+ // This works because we do not adjust the topic_replies when re-approving a topic after an edit.
+ if ($post_data['topic_first_post_id'] == $post_id && $post_data['topic_replies'])
+ {
+ $total_posts += $post_data['topic_replies'];
+ $forum_topics_posts[$post_data['forum_id']]['forum_posts'] += $post_data['topic_replies'];
+ }
}
$post_approve_sql[] = $post_id;