diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-01-04 17:44:07 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-01-04 17:44:07 +0100 |
commit | 3d93fd40edb627dafeede3b5ae3780885e2264fe (patch) | |
tree | b6aaad7cebd68a5fa4819f5ea59bccbfaae6c354 /phpBB/phpbb/feed/topic.php | |
parent | f2c4bf176d7aaa18f143894643851a73cfd7df06 (diff) | |
parent | dd89a369f3166ed4a3730ac8a2fb6eb5608ac284 (diff) | |
download | forums-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/topic.php')
-rw-r--r-- | phpBB/phpbb/feed/topic.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/phpbb/feed/topic.php b/phpBB/phpbb/feed/topic.php index 66c49e55cf..295bf3f795 100644 --- a/phpBB/phpbb/feed/topic.php +++ b/phpBB/phpbb/feed/topic.php @@ -91,6 +91,8 @@ class topic extends \phpbb\feed\post_base function get_sql() { + parent::fetch_attachments(); + $this->sql = array( 'SELECT' => 'p.post_id, p.post_time, p.post_edit_time, p.post_visibility, p.post_subject, p.post_text, p.bbcode_bitfield, p.bbcode_uid, p.enable_bbcode, p.enable_smilies, p.enable_magic_url, p.post_attachment, ' . 'u.username, u.user_id', |