Add skipStyleUpdate paramter to file PIP
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 22 Oct 2020 12:37:53 +0000 (14:37 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 26 Nov 2020 10:43:12 +0000 (11:43 +0100)
wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php

index a3b2fe9f20ee7fb1de65d85f454bc5c364534f52..fdc828cd5fd7f3424dcf8e94baf926f62b634cc4 100644 (file)
@@ -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();
+               }
        }
        
        /**