mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Reset styles after installation
This commit is contained in:
parent
e1cc866a83
commit
726a4071d1
34
file/acp/be.bastelstu.wcf.chat.install.php
Normal file
34
file/acp/be.bastelstu.wcf.chat.install.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
namespace be\bastelstu\wcf\chat;
|
||||
|
||||
/**
|
||||
* Handles installation of Tims Chat.
|
||||
*
|
||||
* @author Tim Düsterhus
|
||||
* @copyright 2010-2012 Tim Düsterhus
|
||||
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||
* @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();
|
@ -35,6 +35,7 @@
|
||||
<instruction type="acpMenu">acpMenu.xml</instruction>
|
||||
<instruction type="userGroupOption">userGroupOption.xml</instruction>
|
||||
<instruction type="cronjob">cronjob.xml</instruction>
|
||||
<instruction type="script">acp/be.bastelstu.wcf.chat.install.php</instruction>
|
||||
</instructions>
|
||||
|
||||
<instructions type="update" fromversion="3.0.0 Alpha *">
|
||||
|
Loading…
Reference in New Issue
Block a user