aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/config/feed.yml1
-rw-r--r--phpBB/phpbb/feed/helper.php8
2 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/config/feed.yml b/phpBB/config/feed.yml
index 7712a832f3..48bd9fe76f 100644
--- a/phpBB/config/feed.yml
+++ b/phpBB/config/feed.yml
@@ -5,6 +5,7 @@ services:
- @config
- @user
- %core.root_path%
+ - %core.php_ext%
feed.factory:
class: phpbb\feed\factory
diff --git a/phpBB/phpbb/feed/helper.php b/phpBB/phpbb/feed/helper.php
index eebece00c4..12acf997ac 100644
--- a/phpBB/phpbb/feed/helper.php
+++ b/phpBB/phpbb/feed/helper.php
@@ -24,6 +24,9 @@ class helper
/** @var string */
protected $phpbb_root_path;
+ /** @var string */
+ protected $phpEx;
+
/**
* Constructor
*
@@ -32,11 +35,12 @@ class helper
* @param string $phpbb_root_path Root path
* @return null
*/
- public function __construct(\phpbb\config\config $config, \phpbb\user $user, $phpbb_root_path)
+ public function __construct(\phpbb\config\config $config, \phpbb\user $user, $phpbb_root_path, $phpEx)
{
$this->config = $config;
$this->user = $user;
$this->phpbb_root_path = $phpbb_root_path;
+ $this->phpEx = $phpEx;
}
/**
@@ -145,7 +149,7 @@ class helper
$post_attachments = implode('<br />', $post_attachments);
// Convert attachments' relative path to absolute path
- $post_attachments = str_replace($this->phpbb_root_path . 'download', $this->get_board_url() . '/download', $post_attachments);
+ $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;
}
td colspan='2' class='sha1'>fbbaeb326a2818b280d4c490f0208b20a72d43f1 /move parentcc413542e6adf9c0487f322036d6b6be1745087a (diff)downloaddrakx-1922fb769aa3deb26f7f5b6fcb14784a5ba9a0f3.tar
drakx-1922fb769aa3deb26f7f5b6fcb14784a5ba9a0f3.tar.gz
drakx-1922fb769aa3deb26f7f5b6fcb14784a5ba9a0f3.tar.bz2
drakx-1922fb769aa3deb26f7f5b6fcb14784a5ba9a0f3.tar.xz
drakx-1922fb769aa3deb26f7f5b6fcb14784a5ba9a0f3.zip