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:
parent
3768f7f2b8
commit
23f1b7d9c7
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user