Adds missing style cache reset after style import
authorMatthias Schmidt <gravatronics@live.com>
Mon, 13 May 2013 15:39:30 +0000 (17:39 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 13 May 2013 15:39:30 +0000 (17:39 +0200)
wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php

index 1b64ee66cac915df205d24526162dc4d77f4f384..a651df3b4befde52300cb09e3c197af1a947bef6 100644 (file)
@@ -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();