1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-26 09:44:26 +02:00

[feature/soft-delete] I told you I was going to rename the class!

Rename topic_visibility class to phpbb_visibility. Also a bit of work to the class itself, mostly cleanup and adding the comments that I'd previously written.

PHPBB3-9657
This commit is contained in:
Josh Woody
2010-06-20 15:01:26 -05:00
committed by Joas Schilling
parent 244f6e2ddc
commit c32d760806
9 changed files with 82 additions and 43 deletions

View File

@@ -241,7 +241,7 @@ if ($sort_days)
AND (topic_last_post_time >= $min_post_time
OR topic_type = " . POST_ANNOUNCE . '
OR topic_type = ' . POST_GLOBAL . ')
AND ' . topic_visibility::get_visibility_sql('topic', $forum_id);
AND ' . phpbb_visibility::get_visibility_sql('topic', $forum_id);
$result = $db->sql_query($sql);
$topics_count = (int) $db->sql_fetchfield('num_topics');
$db->sql_freeresult($result);
@@ -353,7 +353,7 @@ $sql_array = array(
'LEFT_JOIN' => array(),
);
$sql_approved = 'AND ' . topic_visibility::get_visibility_sql('topic', $forum_id, 't.');
$sql_approved = 'AND ' . phpbb_visibility::get_visibility_sql('topic', $forum_id, 't.');
if ($user->data['is_registered'])
{