From 7e314fac7a984f017baba96b1d313da8aa9c762a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 3 Feb 2021 12:23:25 +0100 Subject: [PATCH] Deprecate StyleUtil::updateStyleFile() Resolves #3927 --- com.woltlab.wcf/package.xml | 5 +---- .../acp/update_com.woltlab.wcf_5.4_updateStyle.php | 14 -------------- .../plugin/FilePackageInstallationPlugin.class.php | 7 ++----- .../install/files/lib/util/StyleUtil.class.php | 2 +- 4 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_updateStyle.php diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 4230236401..03a75812e8 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -73,7 +73,7 @@ tar cvf com.woltlab.wcf/files_pre.tar -C wcfsetup/install/files/ \ acp/update_com.woltlab.wcf_5.4_session_3_migrate_session.php - + @@ -91,9 +91,6 @@ tar cvf com.woltlab.wcf/files_pre.tar -C wcfsetup/install/files/ \ acp/update_com.woltlab.wcf_5.4_removeFiles.php - - acp/update_com.woltlab.wcf_5.4_updateStyle.php - diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_updateStyle.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_updateStyle.php deleted file mode 100644 index e9e2d78b56..0000000000 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_updateStyle.php +++ /dev/null @@ -1,14 +0,0 @@ - - * @package WoltLabSuite\Core - */ - -use wcf\util\StyleUtil; - -StyleUtil::updateStyleFile(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php index a9b03df489..8020b521b0 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php @@ -9,8 +9,8 @@ use wcf\system\exception\SystemException; use wcf\system\package\FilesFileHandler; use wcf\system\package\PackageArchive; use wcf\system\package\PackageInstallationDispatcher; +use wcf\system\style\StyleHandler; use wcf\system\WCF; -use wcf\util\StyleUtil; /** * Installs, updates and deletes files. @@ -90,10 +90,7 @@ class FilePackageInstallationPlugin extends AbstractPackageInstallationPlugin im // delete temporary sourceArchive @\unlink($sourceFile); - if (!isset($this->instruction['attributes']['skipStyleUpdate'])) { - // update acp style file - StyleUtil::updateStyleFile(); - } + StyleHandler::resetStylesheets(true); } /** diff --git a/wcfsetup/install/files/lib/util/StyleUtil.class.php b/wcfsetup/install/files/lib/util/StyleUtil.class.php index 9ab333fa81..ffd4571ea8 100644 --- a/wcfsetup/install/files/lib/util/StyleUtil.class.php +++ b/wcfsetup/install/files/lib/util/StyleUtil.class.php @@ -162,7 +162,7 @@ final class StyleUtil } /** - * Updates the acp style file. + * @deprecated 5.4 Call StyleCompiler::compileACP() directly. */ public static function updateStyleFile() { -- 2.20.1