From: Matthias Schmidt Date: Mon, 13 May 2013 15:39:30 +0000 (+0200) Subject: Adds missing style cache reset after style import X-Git-Tag: 2.0.0_Beta_1~199^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5195702e226644f0bd2ab11b1b3dc5714fc44280;p=GitHub%2FWoltLab%2FWCF.git Adds missing style cache reset after style import --- diff --git a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php index 1b64ee66ca..a651df3b4b 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php @@ -2,9 +2,9 @@ namespace wcf\acp\form; use wcf\data\style\StyleEditor; use wcf\form\AbstractForm; +use wcf\system\cache\builder\StyleCacheBuilder; use wcf\system\exception\UserInputException; use wcf\system\WCF; -use wcf\util\FileUtil; /** * Shows the style import form. @@ -53,7 +53,7 @@ class StyleImportForm extends AbstractForm { */ public function validate() { parent::validate(); - + if (empty($this->source['name'])) { throw new UserInputException('source'); } @@ -77,6 +77,8 @@ class StyleImportForm extends AbstractForm { public function save() { parent::save(); + StyleCacheBuilder::getInstance()->reset(); + @unlink($this->source['tmp_name']); $this->saved();