From 2afa89ec4c2c59192cadc531c938914bd3be1dea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 21 Dec 2020 09:06:07 +0100 Subject: [PATCH] Delete update_com.woltlab.wcf_5.3.2_style.php --- .../update_com.woltlab.wcf_5.3.2_style.php | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.2_style.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.2_style.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.2_style.php deleted file mode 100644 index 7fa8fa9224..0000000000 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.2_style.php +++ /dev/null @@ -1,38 +0,0 @@ - - * @package WoltLabSuite\Core - */ - -$styleList = new StyleList(); -$styleList->readObjects(); - -foreach ($styleList as $style) { - $styleEditor = new StyleEditor($style); - - // Fix the style preview. - if ( - $style->image === FileUtil::getRelativePath(WCF_DIR.'images/', $style->getAssetPath()) || - !is_file($style->image) - ) { - $styleEditor->update([ - 'image' => '', - ]); - } - - if ( - $style->image2x === FileUtil::getRelativePath(WCF_DIR.'images/', $style->getAssetPath()) || - !is_file($style->image2x) - ) { - $styleEditor->update([ - 'image2x' => '', - ]); - } -} -- 2.20.1