From ed4bfa914fbf911c7ab7fb2568a361e29a758f40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 22 Oct 2020 14:37:53 +0200 Subject: [PATCH] Add skipStyleUpdate paramter to file PIP --- .../package/plugin/FilePackageInstallationPlugin.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 a3b2fe9f20..fdc828cd5f 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php @@ -81,8 +81,10 @@ class FilePackageInstallationPlugin extends AbstractPackageInstallationPlugin im // delete temporary sourceArchive @unlink($sourceFile); - // update acp style file - StyleUtil::updateStyleFile(); + if (!isset($this->instruction['attributes']['skipStyleUpdate'])) { + // update acp style file + StyleUtil::updateStyleFile(); + } } /** -- 2.20.1