<instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.4_session_3_migrate_session.php</instruction>
<!-- New application code. -->
- <instruction type="file" skipStyleUpdate="true" />
+ <instruction type="file" />
<instruction type="acpTemplate" />
<instruction type="template" />
<!-- Cleanup of the filesystem. -->
<instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.4_removeFiles.php</instruction>
- <!-- Update of the styles that was skipped during the deployment of the new application code. -->
- <instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.4_updateStyle.php</instruction>
-
<!-- Misc. PIPs. -->
<instruction type="objectTypeDefinition" />
<instruction type="objectType" />
+++ /dev/null
-<?php
-
-/**
- * Runs the skipped style update.
- *
- * @author Tim Duesterhus
- * @copyright 2001-2020 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core
- */
-
-use wcf\util\StyleUtil;
-
-StyleUtil::updateStyleFile();
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.
// delete temporary sourceArchive
@\unlink($sourceFile);
- if (!isset($this->instruction['attributes']['skipStyleUpdate'])) {
- // update acp style file
- StyleUtil::updateStyleFile();
- }
+ StyleHandler::resetStylesheets(true);
}
/**
}
/**
- * Updates the acp style file.
+ * @deprecated 5.4 Call StyleCompiler::compileACP() directly.
*/
public static function updateStyleFile()
{