From: Tim Düsterhus Date: Fri, 20 Aug 2021 07:20:51 +0000 (+0200) Subject: Use ->getLocation() in UserCoverPhoto::createWebpVariant() X-Git-Tag: 5.4.5_RC_1~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea47c7d38ebef9863eacf8a94ffda89f31000497;p=GitHub%2FWoltLab%2FWCF.git Use ->getLocation() in UserCoverPhoto::createWebpVariant() This partially reapplies c3ebf8b995927b826072cfcc72d08a9ebd93f878 which was reverted in 300312306b2858b6b9f474a30814fe16c3e1854c. --- diff --git a/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php b/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php index 30c68c9d75..d5162e91f6 100644 --- a/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php +++ b/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php @@ -114,7 +114,7 @@ class UserCoverPhoto implements IWebpUserCoverPhoto return; } - $sourceLocation = WCF_DIR . 'images/coverPhotos/' . $this->getFilename($this->coverPhotoExtension === 'webp'); + $sourceLocation = $this->getLocation($this->coverPhotoExtension === 'webp'); $outputFilenameWithoutExtension = \preg_replace('~\.[a-z]+$~', '', $sourceLocation); return ImageUtil::createWebpVariant($sourceLocation, $outputFilenameWithoutExtension);