[CORE] Fix path configuration

This commit is contained in:
2021-08-19 01:45:11 +01:00
committed by Hugo Sales
parent e7b985a460
commit 2b457655ea
7 changed files with 8 additions and 13 deletions

View File

@@ -323,7 +323,7 @@ class Attachment extends Entity
public function getPath()
{
$filename = $this->getFilename();
return is_null($filename) ? null : Common::config('attachments', 'dir') . $filename;
return is_null($filename) ? null : Common::config('attachments', 'dir') . DIRECTORY_SEPARATOR . $filename;
}
public function getUrl()