phpBB

Code Changes

File: phpbb/feed/news.php

  Unmodified   Added   Modified   Removed
Line 19Line 19
* This will give you {$this->num_items} first posts
* of all topics in the selected news forums.
*/

* This will give you {$this->num_items} first posts
* of all topics in the selected news forums.
*/

class news extends \phpbb\feed\topic_base

class news extends topic_base

{

{

	function get_news_forums()





	/**
* Returns the ids of the 'news forums'
* @return int[]
*/
private function get_news_forums()

	{
static $forum_ids;


	{
static $forum_ids;


Line 48Line 52
		return $forum_ids;
}


		return $forum_ids;
}


	function get_sql()




	/**
* {@inheritdoc}
*/
protected function get_sql()

	{
// Determine forum ids
$in_fid_ary = array_intersect($this->get_news_forums(), $this->get_readable_forums());

	{
// Determine forum ids
$in_fid_ary = array_intersect($this->get_news_forums(), $this->get_readable_forums());

Line 82Line 89
		{
return false;
}

		{
return false;
}

 

parent::fetch_attachments($post_ids);


$this->sql = array(
'SELECT' => 'f.forum_id, f.forum_name,


$this->sql = array(
'SELECT' => 'f.forum_id, f.forum_name,