From: Tim Düsterhus Date: Thu, 23 Jul 2020 12:13:37 +0000 (+0200) Subject: Fix copy and paste mistake deleting cover photos on Favicon update X-Git-Tag: 5.3.0_Alpha_1~100^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1eaf367174852acd8b9b52f13158a2d993ccd573;p=GitHub%2FWoltLab%2FWCF.git Fix copy and paste mistake deleting cover photos on Favicon update --- diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index 0be2b7f57e..a8568c4f5e 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -305,11 +305,6 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction /** @var \wcf\system\file\upload\UploadFile $file */ $file = $this->parameters['uploads']['favicon']; - if ($style->coverPhotoExtension && file_exists($style->getCoverPhotoLocation())) { - if (!$file || $style->getCoverPhotoLocation() !== $file->getLocation()) { - unlink($style->getCoverPhotoLocation()); - } - } if ($file !== null) { $fileLocation = $file->getLocation(); if (($imageData = getimagesize($fileLocation)) === false) {