<input type="text" id="title" name="title" value="{$i18nPlainValues['title']}" autofocus class="long">
{if $errorField == 'title'}
<small class="innerError">
- {if $errorType == 'title' || $errorType == 'multilingual'}
+ {if $errorType == 'empty' || $errorType == 'multilingual'}
{lang}wcf.global.form.error.{@$errorType}{/lang}
{else}
{lang}wcf.acp.menu.title.error.{@$errorType}{/lang}
<input type="text" name="title" id="title" value="{$title}" class="long" required>
{if $errorField == 'title'}
<small class="innerError">
- {if $errorType == 'multilingual'}
- {lang}wcf.global.form.error.multilingual{/lang}
+ {if $errorType == 'empty' || $errorType == 'multilingual'}
+ {lang}wcf.global.form.error.{@$errorType}{/lang}
{else}
{lang}wcf.acp.menu.item.title.error.{$errorType}{/lang}
{/if}
// validate page menu item name
if (!I18nHandler::getInstance()->validateValue('title')) {
- throw new UserInputException('title');
+ if (I18nHandler::getInstance()->isPlainValue('title')) {
+ throw new UserInputException('title');
+ }
+ else {
+ throw new UserInputException('title', 'multilingual');
+ }
}
// validate parent menu item