phpBB

Code Changes

File: phpbb/feed/topics_active.php

  Unmodified   Added   Modified   Removed
Line 20Line 20
* with replies made withing the last {$this->sort_days} days
* including the last post.
*/

* with replies made withing the last {$this->sort_days} days
* including the last post.
*/

class topics_active extends \phpbb\feed\topic_base

class topics_active extends topic_base

{

{

	var $sort_days = 7;

	protected $sort_days = 7;





	function set_keys()




	/**
* {@inheritdoc}
*/
public function set_keys()

	{
parent::set_keys();


	{
parent::set_keys();


Line 32Line 35
		$this->set('creator',	'topic_last_poster_name');
}


		$this->set('creator',	'topic_last_poster_name');
}


	function get_sql()




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

	{
$forum_ids_read = $this->get_readable_forums();
if (empty($forum_ids_read))

	{
$forum_ids_read = $this->get_readable_forums();
if (empty($forum_ids_read))

Line 70Line 76
		{
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,

Line 94Line 102
		return true;
}


		return true;
}


	function get_forum_ids()






	/**
* Returns the ids of the forums not excluded from the active list
*
* @return int[]
*/
private function get_forum_ids()

	{
static $forum_ids;


	{
static $forum_ids;


Line 122Line 135
		return $forum_ids;
}


		return $forum_ids;
}


	function adjust_item(&$item_row, &$row)




	/**
* {@inheritdoc}
*/
public function adjust_item(&$item_row, &$row)

	{
parent::adjust_item($item_row, $row);


	{
parent::adjust_item($item_row, $row);