diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-12-25 17:54:11 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-01-03 22:56:42 +0100 |
commit | 7cad25e4cbed2efbf891001cd2664f825674d5a7 (patch) | |
tree | 899eaf8cd5592e6dd9428363c17724da3c1c1a2c /phpBB/phpbb/feed/news.php | |
parent | bc96a9f1f67df4719f66896590288eb03f6ca12d (diff) | |
download | forums-7cad25e4cbed2efbf891001cd2664f825674d5a7.tar forums-7cad25e4cbed2efbf891001cd2664f825674d5a7.tar.gz forums-7cad25e4cbed2efbf891001cd2664f825674d5a7.tar.bz2 forums-7cad25e4cbed2efbf891001cd2664f825674d5a7.tar.xz forums-7cad25e4cbed2efbf891001cd2664f825674d5a7.zip |
[ticket/14838] Do not query full attachments table in feeds
The fetch_attachments() will also now throw a runtime exception if a feed
tries to do this nonetheless.
PHPBB3-14838
Diffstat (limited to 'phpBB/phpbb/feed/news.php')
-rw-r--r-- | phpBB/phpbb/feed/news.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/phpbb/feed/news.php b/phpBB/phpbb/feed/news.php index a02c199d85..5d4786518b 100644 --- a/phpBB/phpbb/feed/news.php +++ b/phpBB/phpbb/feed/news.php @@ -83,6 +83,8 @@ class news extends \phpbb\feed\topic_base return false; } + parent::fetch_attachments($post_ids); + $this->sql = array( 'SELECT' => 'f.forum_id, f.forum_name, t.topic_id, t.topic_title, t.topic_poster, t.topic_first_poster_name, t.topic_posts_approved, t.topic_posts_unapproved, t.topic_posts_softdeleted, t.topic_views, t.topic_time, t.topic_last_post_time, |