1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-30 19:24:13 +02:00

[ticket/13988] Use absolute path for image attachments in feeds

Previously, atom feeds use relative links for image attachments

PHPBB3-13988
This commit is contained in:
CarstenF 2015-07-15 19:39:54 +02:00 committed by Zoddo
parent 3768f7f2b8
commit 23f1b7d9c7

View File

@ -149,12 +149,10 @@ class helper
{
$update_count = array();
parse_attachments($forum_id, $content, $post_attachments, $update_count);
$post_attachments = implode('<br />', $post_attachments);
$content .= implode('<br />', $post_attachments);
// Convert attachments' relative path to absolute path
$post_attachments = str_replace($this->phpbb_root_path . 'download/file.' . $this->phpEx, $this->get_board_url() . '/download/file.' . $this->phpEx, $post_attachments);
$content .= $post_attachments;
$content = str_replace($this->phpbb_root_path . 'download/file.' . $this->phpEx, $this->get_board_url() . '/download/file.' . $this->phpEx, $content);
}
// Remove Comments from inline attachments [ia]