{if $errorField == 'smileyTitle'}
<small class="innerError">
- {if $errorType == 'empty'}
- {lang}wcf.global.form.error.empty{/lang}
+ {if $errorType == 'empty' || $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.{$errorType}{/lang}
{else}
{lang}wcf.acp.smiley.smileyTitle.error.{@$errorType}{/lang}
{/if}
public $aliases = '';
/**
- * smileyPath
+ * path to the smiley file
* @var string
*/
public $smileyPath = '';
$this->smileyCode = '';
$this->categoryID = 0;
$this->showOrder = 0;
+ $this->smileyPath = '';
I18nHandler::getInstance()->reset();
// validate title
if (!I18nHandler::getInstance()->validateValue('smileyTitle')) {
- throw new UserInputException('smileyTitle');
+ if (I18nHandler::getInstance()->isPlainValue('smileyTitle')) {
+ throw new UserInputException('smileyTitle');
+ }
+ else {
+ throw new UserInputException('smileyTitle', 'multilingual');
+ }
}
if ($this->categoryID) {