aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-01 22:14:04 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-01 22:14:04 +0200
commit4a65940e6206aef6b85a0aacfb5324ecabf76e12 (patch)
tree73c0953ad4122a7a73642418de60714d30b2b3e0 /phpBB/includes/functions_display.php
parent280619eea9585924a44611f001f266d354036d0a (diff)
downloadforums-4a65940e6206aef6b85a0aacfb5324ecabf76e12.tar
forums-4a65940e6206aef6b85a0aacfb5324ecabf76e12.tar.gz
forums-4a65940e6206aef6b85a0aacfb5324ecabf76e12.tar.bz2
forums-4a65940e6206aef6b85a0aacfb5324ecabf76e12.tar.xz
forums-4a65940e6206aef6b85a0aacfb5324ecabf76e12.zip
[feature/soft-delete] Add unit tests for get_forums_visibility_sql()
PHPBB3-9657
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 2781f1a7bb..5849f5cf4c 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -1003,7 +1003,7 @@ function display_user_activity(&$userdata)
FROM ' . POSTS_TABLE . '
WHERE poster_id = ' . $userdata['user_id'] . '
AND post_postcount = 1
- AND ' . phpbb_content_visibility::get_visibility_sql_forums('post', $forum_ary) . '
+ AND ' . phpbb_content_visibility::get_forums_visibility_sql('post', $forum_ary) . '
GROUP BY forum_id
ORDER BY num_posts DESC';
$result = $db->sql_query_limit($sql, 1);
@@ -1029,7 +1029,7 @@ function display_user_activity(&$userdata)
FROM ' . POSTS_TABLE . '
WHERE poster_id = ' . $userdata['user_id'] . '
AND post_postcount = 1
- AND ' . phpbb_content_visibility::get_visibility_sql_forums('post', $forum_ary) . '
+ AND ' . phpbb_content_visibility::get_forums_visibility_sql('post', $forum_ary) . '
GROUP BY topic_id
ORDER BY num_posts DESC';
$result = $db->sql_query_limit($sql, 1);