From 9397762b13ac0f1beccecb4cbe74a02a4e6c3535 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 12 May 2021 15:01:24 +0200 Subject: [PATCH] Incorrect file path --- .../files/lib/data/user/cover/photo/UserCoverPhoto.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ddb00a1ac9..e90c346ffa 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 . $this->getFilename($this->coverPhotoExtension === 'webp'); + $sourceLocation = WCF_DIR . 'images/coverPhotos/' . $this->getFilename($this->coverPhotoExtension === 'webp'); $outputFilenameWithoutExtension = \preg_replace('~\.[a-z]+$~', '', $sourceLocation); return ImageUtil::createWebpVariant($sourceLocation, $outputFilenameWithoutExtension); -- 2.20.1