aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/feed.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-10-05 16:54:09 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-10-05 16:54:09 +0530
commit7a971f896d9a09037959d26794b8efe09aa1258e (patch)
tree6ffccdcc3270368b8b56982c4f50beb7e4b9596d /phpBB/feed.php
parente8c7f8134df38708e1af27325d2c8a7b9f28052e (diff)
parentc73801242d5c1abc3efb4ac75b4cc1a5d01ce514 (diff)
downloadforums-7a971f896d9a09037959d26794b8efe09aa1258e.tar
forums-7a971f896d9a09037959d26794b8efe09aa1258e.tar.gz
forums-7a971f896d9a09037959d26794b8efe09aa1258e.tar.bz2
forums-7a971f896d9a09037959d26794b8efe09aa1258e.tar.xz
forums-7a971f896d9a09037959d26794b8efe09aa1258e.zip
Merge branch 'ticket/11271' into ticket/11271-develop
# By erangamapa (7) and Dhruv (2) * ticket/11271: [ticket/11271] Typecast forum and topic id to integer [ticket/11271] Use absolute path for displaying inline attachments in feeds [ticket/11271] Changed executable bit. [ticket/11271] Formatting code and removing null assignment. [ticket/11271] Removing unnecessary database object [ticket/11271] Separated attachment fetching query [ticket/11271] Fetched feed attachments before loop. [ticket/11271] Removed in-line attachment comments properly. [ticket/11271] Displaying in-line attached images in ATOM feed. Conflicts: phpBB/feed.php
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r--phpBB/feed.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index 35cd7fda3f..c31a6b6b1d 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -18,6 +18,7 @@ define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
+include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
if (!$config['feed_enable'])
{
@@ -72,6 +73,9 @@ if ($feed === false)
trigger_error('NO_FEED');
}
+// Get attachments for this feed
+$feed->fetch_attachments();
+
// Open Feed
$feed->open();
@@ -107,7 +111,7 @@ while ($row = $feed->get_item())
'title' => censor_text($title),
'category' => ($config['feed_item_statistics'] && !empty($row['forum_id'])) ? $board_url . '/viewforum.' . $phpEx . '?f=' . $row['forum_id'] : '',
'category_name' => ($config['feed_item_statistics'] && isset($row['forum_name'])) ? $row['forum_name'] : '',
- 'description' => censor_text($phpbb_feed_helper->generate_content($row[$feed->get('text')], $row[$feed->get('bbcode_uid')], $row[$feed->get('bitfield')], $options)),
+ 'description' => censor_text($phpbb_feed_helper->generate_content($row[$feed->get('text')], $row[$feed->get('bbcode_uid')], $row[$feed->get('bitfield')], $options, $row['forum_id'], (($row['post_attachment']) ? $feed->attachments[$row['post_id']] : array()))),
'statistics' => '',
);