From 2f39f5dbd402f18542ac43fd6a58ec388501f76f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 27 Jul 2020 11:33:23 +0200 Subject: [PATCH] Fix Style::getCoverPhotoUrl() Make sure to return an absolute URL. --- wcfsetup/install/files/lib/data/style/Style.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.20.1