aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorJosh Woody <a_jelly_doughnut@phpbb.com>2010-06-30 13:38:49 -0500
committerJoas Schilling <nickvergessen@gmx.de>2012-08-29 17:50:11 +0200
commita80cfafdd91a384ba810a8ee0d43406bba955faa (patch)
tree0c00c9e50e65e8e6af11494c63645d916bd38216 /phpBB/viewtopic.php
parent67393751356e9f02f7c1ab0a2f7a3a508403edc3 (diff)
downloadforums-a80cfafdd91a384ba810a8ee0d43406bba955faa.tar
forums-a80cfafdd91a384ba810a8ee0d43406bba955faa.tar.gz
forums-a80cfafdd91a384ba810a8ee0d43406bba955faa.tar.bz2
forums-a80cfafdd91a384ba810a8ee0d43406bba955faa.tar.xz
forums-a80cfafdd91a384ba810a8ee0d43406bba955faa.zip
[feature/soft-delete] Rename phpbb_visibility class to phpbb_content_visibility
Rename the class to more accurately reflect what it does. PHPBB3-9657
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index e5a7f64cad..fde3631c56 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -83,7 +83,7 @@ if ($view && !$post_id)
$sql = 'SELECT post_id, topic_id, forum_id
FROM ' . POSTS_TABLE . "
WHERE topic_id = $topic_id
- AND " . phpbb_visibility::get_visibility_sql('post', $forum_id) . "
+ AND " . phpbb_content_visibility::get_visibility_sql('post', $forum_id) . "
AND post_time > $topic_last_read
AND forum_id = $forum_id
ORDER BY post_time ASC";
@@ -137,7 +137,7 @@ if ($view && !$post_id)
WHERE forum_id = ' . $row['forum_id'] . "
AND topic_moved_id = 0
AND topic_last_post_time $sql_condition {$row['topic_last_post_time']}
- AND" . phpbb_visibility::get_visibility_sql('topic', $row['forum_id']) . "
+ AND" . phpbb_content_visibility::get_visibility_sql('topic', $row['forum_id']) . "
ORDER BY topic_last_post_time $sql_ordering";
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);
@@ -277,7 +277,7 @@ if ($post_id)
$sql = 'SELECT COUNT(p.post_id) AS prev_posts
FROM ' . POSTS_TABLE . " p
WHERE p.topic_id = {$topic_data['topic_id']}
- " . phpbb_visibility::get_visibility_sql('post', $forum_id, 'p.');
+ " . phpbb_content_visibility::get_visibility_sql('post', $forum_id, 'p.');
if ($sort_dir == 'd')
{
@@ -408,7 +408,7 @@ if ($sort_days)
FROM ' . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND post_time >= $min_post_time
- AND " . phpbb_visibility::get_visibility_sql('post', $forum_id);
+ AND " . phpbb_content_visibility::get_visibility_sql('post', $forum_id);
$result = $db->sql_query($sql);
$total_posts = (int) $db->sql_fetchfield('num_posts');
$db->sql_freeresult($result);
@@ -945,7 +945,7 @@ $i = $i_total = 0;
$sql = 'SELECT p.post_id
FROM ' . POSTS_TABLE . ' p' . (($join_user_sql[$sort_key]) ? ', ' . USERS_TABLE . ' u': '') . "
WHERE p.topic_id = $topic_id
- AND " . phpbb_visibility::get_visibility_sql('post', $forum_id, 'p.') . "
+ AND " . phpbb_content_visibility::get_visibility_sql('post', $forum_id, 'p.') . "
" . (($join_user_sql[$sort_key]) ? 'AND u.user_id = p.poster_id': '') . "
$limit_posts_time
ORDER BY $sql_sort_order";