mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 07:27:17 +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();
|
$update_count = array();
|
||||||
parse_attachments($forum_id, $content, $post_attachments, $update_count);
|
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
|
// 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 = str_replace($this->phpbb_root_path . 'download/file.' . $this->phpEx, $this->get_board_url() . '/download/file.' . $this->phpEx, $content);
|
||||||
|
|
||||||
$content .= $post_attachments;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove Comments from inline attachments [ia]
|
// Remove Comments from inline attachments [ia]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user