Delete update_com.woltlab.wcf_5.3.2_style.php
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 21 Dec 2020 08:06:07 +0000 (09:06 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Dec 2020 08:06:07 +0000 (09:06 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.2_style.php [deleted file]

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 (file)
index 7fa8fa9..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-use wcf\data\style\StyleEditor;
-use wcf\data\style\StyleList;
-use wcf\util\FileUtil;
-
-/**
- * @author     Tim Duesterhus
- * @copyright  2001-2020 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @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' => '',
-               ]);
-       }
-}