Incorrect file path
authorAlexander Ebert <ebert@woltlab.com>
Wed, 12 May 2021 13:01:24 +0000 (15:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 12 May 2021 13:01:24 +0000 (15:01 +0200)
wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php

index ddb00a1ac97f6d9b992704c40aaa49dbcb88b651..e90c346ffa490ddb80d66f44633366ee1c020e78 100644 (file)
@@ -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);