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.
*/
public function validate() {
parent::validate();
-
+
if (empty($this->source['name'])) {
throw new UserInputException('source');
}
public function save() {
parent::save();
+ StyleCacheBuilder::getInstance()->reset();
+
@unlink($this->source['tmp_name']);
$this->saved();