aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-22 14:55:10 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-22 14:55:10 +0200
commit5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7 (patch)
tree631492f0676970371ea538d881fbe89997fed1aa /phpBB/mcp.php
parent168dd29f24843e97182c894a5d43a7d38f8a195c (diff)
downloadforums-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/mcp.php')
-rw-r--r--phpBB/mcp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 068e870126..f13a6260fe 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -752,7 +752,7 @@ function mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql,
$limit_days = array(0 => $user->lang['ALL_TOPICS'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 365 => $user->lang['1_YEAR']);
$sort_by_text = array('a' => $user->lang['AUTHOR'], 't' => $user->lang['POST_TIME'], 'tt' => $user->lang['TOPIC_TIME'], 'r' => $user->lang['REPLIES'], 's' => $user->lang['SUBJECT'], 'v' => $user->lang['VIEWS']);
- $sort_by_sql = array('a' => 't.topic_first_poster_name', 't' => 't.topic_last_post_time', 'tt' => 't.topic_time', 'r' => (($auth->acl_get('m_approve', $forum_id)) ? 't.topic_replies_real' : 't.topic_replies'), 's' => 't.topic_title', 'v' => 't.topic_views');
+ $sort_by_sql = array('a' => 't.topic_first_poster_name', 't' => 't.topic_last_post_time', 'tt' => 't.topic_time', 'r' => (($auth->acl_get('m_approve', $forum_id)) ? 't.topic_posts + t.topic_posts_unapproved + t.topic_posts_softdeleted' : 't.topic_posts'), 's' => 't.topic_title', 'v' => 't.topic_views');
$limit_time_sql = ($min_time) ? "AND t.topic_last_post_time >= $min_time" : '';
break;