<div class="sidebarItemTitle">
<h3><a href="{$boxUserTrophy->getTrophy()->getLink()}">{$boxUserTrophy->getTrophy()->getTitle()}</a></h3>
- <small><p>{@$boxUserTrophy->getDescription()}</p><p>{@$boxUserTrophy->getUserProfile()->getAnchorTag()} - {@$boxUserTrophy->time|time}</p></small>
+ <small>{if !$boxUserTrophy->getDescription()|empty}<p>{$boxUserTrophy->getDescription()}</p>{/if}<p>{@$boxUserTrophy->getUserProfile()->getAnchorTag()} - {@$boxUserTrophy->time|time}</p></small>
</div>
</li>
{/foreach}
<div class="containerHeadline">
<h3><a href="{link controller='Trophy' object=$userTrophy->getTrophy()}{/link}">{@$userTrophy->getTrophy()->getTitle()}</a></h3>
- <small>{$userTrophy->getDescription()} - {@$userTrophy->time|time}</small>
+ <small>{if !$userTrophy->getDescription()|empty}{$userTrophy->getDescription()} – {/if}{@$userTrophy->time|time}</small>
</div>
</div>
</li>
<div class="contentHeaderTitle">
<h1 class="contentTitle">{$trophy->getTitle()}</h1>
<ul class="inlineList contentHeaderMetaData">
- <li>{$trophy->getDescription()}</li>
+ {if !$trophy->getDescription()|empty}<li>{$trophy->getDescription()}</li>{/if}
<li><span class="icon icon16 fa-users"></span> {@$items}</li>
</ul>
</div>
<div class="sidebarItemTitle">
<h3>{@$userTrophy->getUserProfile()->getAnchorTag()}</h3>
- <small>{$userTrophy->getDescription()} – {@$userTrophy->time|time}</small>
+ <small>{if !$userTrophy->getDescription()|empty}{$userTrophy->getDescription()} – {/if}{@$userTrophy->time|time}</small>
</div>
</li>
{/foreach}
<div class="sidebarItemTitle">
<h3><a href="{$trophy->getLink()}">{@$trophy->getTitle()}</a></h3>
- <small>{$trophy->getDescription()}</small>
+ {if !$trophy->getDescription()|empty}<small>{$trophy->getDescription()}</small>{/if}
</div>
</li>
{/foreach}
$descriptionI18n = new I18nValue('description');
$descriptionI18n->setLanguageItem('wcf.user.trophy.description', 'wcf.user.trophy', 'com.woltlab.wcf');
+ $descriptionI18n->setFlags(I18nValue::ALLOW_EMPTY);
$this->registerI18nValue($descriptionI18n);
if (isset($_POST['tmpHash'])) {
])
]))->executeAction();
- $this->saveI18n($databaseObject, UserTrophyEditor::class);
+ $this->saveI18n($databaseObject['returnValues'], UserTrophyEditor::class);
}
$this->reset();