}
// update bbcode
- $this->objectAction = new SmileyAction(array($this->smileyID), 'update', array('data' => array_merge($this->additionalFields, array(
- 'smileyTitle' => $this->smileyTitle,
- 'smileyCode' => $this->smileyCode,
- 'aliases' => $this->aliases,
- 'smileyPath' => $this->smileyPath,
- 'showOrder' => $this->showOrder,
- 'categoryID' => $this->categoryID ?: null
- ))));
+ $this->objectAction = new SmileyAction(array($this->smileyID), 'update', array(
+ 'data' => array_merge($this->additionalFields, array(
+ 'smileyTitle' => $this->smileyTitle,
+ 'smileyCode' => $this->smileyCode,
+ 'aliases' => $this->aliases,
+ 'smileyPath' => $this->smileyPath,
+ 'showOrder' => $this->showOrder,
+ 'categoryID' => $this->categoryID ?: null
+ )),
+ 'fileLocation' => $this->uploadedFilename ? WCF_DIR.'images/smilies/tmp/'.$this->uploadedFilename : ''
+ ));
$this->objectAction->executeAction();
+ $this->uploadedFilename = '';
+
$this->saved();
// show success