/** * @see wcf\form\IForm::save() */ public function save() { AbstractForm::saved(); $this->objectAction = new StyleAction(array($this->style), 'update', array( 'data' => array( 'styleName' => $this->styleName, 'templateGroupID' => $this->templateGroupID, 'styleVersion' => $this->styleVersion, 'styleDate' => $this->styleDate, 'imagePath' => $this->imagePath, 'copyright' => $this->copyright, 'license' => $this->license, 'authorName' => $this->authorName, 'authorURL' => $this->authorURL ), 'tmpHash' => $this->tmpHash, 'variables' => $this->variables )); $this->objectAction->executeAction(); // save description I18nHandler::getInstance()->save('styleDescription', $this->style->styleDescription, 'wcf.style'); // call saved event $this->saved(); // reload style object to update preview image $this->style = new Style($this->style->styleID); WCF::getTPL()->assign('success', true); }