1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12421] Don't parse [attachment] tags if user can't view them

https://tracker.phpbb.com/browse/PHPBB3-12421

PHPBB3-12421
This commit is contained in:
Tristan Darricau
2014-04-19 01:11:52 +02:00
committed by Tristan Darricau
parent c7d29fbdb1
commit f4df3f0aaf
3 changed files with 11 additions and 1 deletions

View File

@@ -132,6 +132,7 @@ class forum extends \phpbb\feed\post_base
parent::adjust_item($item_row, $row);
$item_row['title'] = (isset($row['forum_name']) && $row['forum_name'] !== '') ? $row['forum_name'] . ' ' . $this->separator . ' ' . $item_row['title'] : $item_row['title'];
$item_row['forum_id'] = $this->forum_id;
}
function get_item()

View File

@@ -105,6 +105,13 @@ class topic extends \phpbb\feed\post_base
return true;
}
function adjust_item(&$item_row, &$row)
{
parent::adjust_item($item_row, $row);
$item_row['forum_id'] = $this->forum_id;
}
function get_item()
{
return ($row = parent::get_item()) ? array_merge($this->topic_data, $row) : $row;