aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/feed/news.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-04 17:44:07 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-01-04 17:44:07 +0100
commit3d93fd40edb627dafeede3b5ae3780885e2264fe (patch)
treeb6aaad7cebd68a5fa4819f5ea59bccbfaae6c354 /phpBB/phpbb/feed/news.php
parentf2c4bf176d7aaa18f143894643851a73cfd7df06 (diff)
parentdd89a369f3166ed4a3730ac8a2fb6eb5608ac284 (diff)
downloadforums-3d93fd40edb627dafeede3b5ae3780885e2264fe.tar
forums-3d93fd40edb627dafeede3b5ae3780885e2264fe.tar.gz
forums-3d93fd40edb627dafeede3b5ae3780885e2264fe.tar.bz2
forums-3d93fd40edb627dafeede3b5ae3780885e2264fe.tar.xz
forums-3d93fd40edb627dafeede3b5ae3780885e2264fe.zip
Merge pull request #4611 from marc1706/ticket/14838
[icket/14838] Do not query full attachments table in feeds
Diffstat (limited to 'phpBB/phpbb/feed/news.php')
-rw-r--r--phpBB/phpbb/feed/news.php2
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,