From: Tim Düsterhus Date: Mon, 12 Jul 2021 12:53:05 +0000 (+0200) Subject: Delete manifest.json and browserconfig.xml when deleting a favicon X-Git-Tag: 5.4.0~7^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54bbc9183ffecf101bd49926aa774dc0b3c5e8b7;p=GitHub%2FWoltLab%2FWCF.git Delete manifest.json and browserconfig.xml when deleting a favicon --- diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index 73e8e93915..b93e81578c 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -368,6 +368,8 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction \unlink($style->getAssetPath() . $filename); } \unlink($style->getAssetPath() . "favicon.ico"); + \unlink($style->getAssetPath() . "manifest.json"); + \unlink($style->getAssetPath() . "browserconfig.xml"); foreach (['png', 'jpg', 'gif'] as $extension) { if (\file_exists($style->getAssetPath() . "favicon-template." . $extension)) { \unlink($style->getAssetPath() . "favicon-template." . $extension);