mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/9657] Use the service instead of the static class
PHPBB3-9657
This commit is contained in:
@@ -90,7 +90,7 @@ class phpbb_feed_forum extends phpbb_feed_post_base
|
||||
|
||||
function get_sql()
|
||||
{
|
||||
$sql_visibility = phpbb_content_visibility::get_visibility_sql('topic', $this->forum_id);
|
||||
$sql_visibility = $this->content_visibility->get_visibility_sql('topic', $this->forum_id);
|
||||
|
||||
// Determine topics with recent activity
|
||||
$sql = 'SELECT topic_id, topic_last_post_time
|
||||
@@ -116,7 +116,7 @@ class phpbb_feed_forum extends phpbb_feed_post_base
|
||||
return false;
|
||||
}
|
||||
|
||||
$sql_visibility = phpbb_content_visibility::get_visibility_sql('post', $this->forum_id, 'p.');
|
||||
$sql_visibility = $this->content_visibility->get_visibility_sql('post', $this->forum_id, 'p.');
|
||||
|
||||
$this->sql = array(
|
||||
'SELECT' => 'p.post_id, p.topic_id, p.post_time, p.post_edit_time, p.post_visibility, p.post_subject, p.post_text, p.bbcode_bitfield, p.bbcode_uid, p.enable_bbcode, p.enable_smilies, p.enable_magic_url, ' .
|
||||
|
Reference in New Issue
Block a user