From: Tim Düsterhus Date: Mon, 27 Jul 2020 09:33:23 +0000 (+0200) Subject: Fix Style::getCoverPhotoUrl() X-Git-Tag: 5.3.0_Alpha_1~100^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f39f5dbd402f18542ac43fd6a58ec388501f76f;p=GitHub%2FWoltLab%2FWCF.git Fix Style::getCoverPhotoUrl() Make sure to return an absolute URL. --- diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index 2c3b6c0c10..d8ace46aae 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -257,7 +257,7 @@ class Style extends DatabaseObject { */ public function getCoverPhotoUrl() { if ($this->coverPhotoExtension) { - return FileUtil::getRelativePath(WCF_DIR, $this->getAssetPath()).'coverPhoto.'.$this->coverPhotoExtension; + return WCF::getPath() . FileUtil::getRelativePath(WCF_DIR, $this->getAssetPath()).'coverPhoto.'.$this->coverPhotoExtension; } return WCF::getPath() . 'images/coverPhotos/' . $this->getCoverPhoto(); }