diff --git a/file/acp/be.bastelstu.wcf.chat.install.php b/file/acp/be.bastelstu.wcf.chat.install.php new file mode 100644 index 0000000..f404002 --- /dev/null +++ b/file/acp/be.bastelstu.wcf.chat.install.php @@ -0,0 +1,34 @@ + + * @package be.bastelstu.wcf.chat + */ +final class Install { + /** + * Contains all the styles the current installation has. + * + * @var array<\wcf\data\style\Style> + */ + private $styles = null; + + public function __construct() { + $this->styles = \wcf\system\style\StyleHandler::getInstance()->getAvailableStyles(); + } + + /** + * Resets styles. + */ + public function execute() { + foreach ($this->styles as $style) { + \wcf\system\style\StyleHandler::getInstance()->resetStylesheet($style); + } + } +} +$install = new Install(); +$install->execute(); diff --git a/package.xml b/package.xml index 5f7cd66..c113864 100644 --- a/package.xml +++ b/package.xml @@ -35,6 +35,7 @@ acpMenu.xml userGroupOption.xml cronjob.xml + acp/be.bastelstu.wcf.chat.install.php