diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-10-22 14:55:10 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-10-22 14:55:10 +0200 |
commit | 5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7 (patch) | |
tree | 631492f0676970371ea538d881fbe89997fed1aa /phpBB/includes/mcp/mcp_forum.php | |
parent | 168dd29f24843e97182c894a5d43a7d38f8a195c (diff) | |
download | forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar.gz forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar.bz2 forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar.xz forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.zip |
[feature/soft-delete] Fix some more uses of topic_replies_real
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/mcp/mcp_forum.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_forum.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php index c04a4d37d4..bacc4c444c 100644 --- a/phpBB/includes/mcp/mcp_forum.php +++ b/phpBB/includes/mcp/mcp_forum.php @@ -222,7 +222,7 @@ function mcp_forum_view($id, $mode, $action, $forum_info) // @todo: $topic_unapproved = ($row['topic_visibility'] == ITEM_UNAPPROVED && $auth->acl_get('m_approve', $row['forum_id'])) ? true : false; - $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_replies'] < $row['topic_replies_real'] && $auth->acl_get('m_approve', $row['forum_id'])) ? true : false; + $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_posts_unapproved'] && $auth->acl_get('m_approve', $row['forum_id'])) ? true : false; $topic_deleted = ($row['topic_visibility'] == ITEM_DELETED) ? true : false; $u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? $url . '&i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . '&t=' . $row['topic_id'] : ''; $u_mcp_queue = (!$u_mcp_queue && $topic_deleted) ? $url . 'i=queue&mode=deleted_posts&t=' . $topic_id : $u_mcp_queue; |