From: Tim Düsterhus Date: Mon, 21 Dec 2020 08:06:07 +0000 (+0100) Subject: Delete update_com.woltlab.wcf_5.3.2_style.php X-Git-Tag: 5.4.0_Alpha_1~530 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2afa89ec4c2c59192cadc531c938914bd3be1dea;p=GitHub%2FWoltLab%2FWCF.git Delete 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' => '', - ]); - } -}