Suppress empty style descriptions
authorAlexander Ebert <ebert@woltlab.com>
Mon, 16 Jan 2023 15:36:33 +0000 (16:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 16 Jan 2023 15:36:33 +0000 (16:36 +0100)
See https://www.woltlab.com/community/thread/298369-stil-beschreibung-fehlt-sprachvariable-wird-angezeigt/

com.woltlab.wcf/templates/styleChooser.tpl

index e9b0fb0eab2b4c0f81292050078ed9e47c382e46..49907fcb3e70b11d329ff107b303ab4274257dd0 100644 (file)
@@ -9,7 +9,7 @@
                                        <div class="containerHeadline">
                                                <h3>{$style->styleName}{if $style->styleID == $__wcf->getStyleHandler()->getStyle()->styleID} <span class="icon icon16 fa-check-circle" title="{lang}wcf.style.currentStyle{/lang}"></span>{/if}</h3>
                                        </div>
-                                       {if $style->styleDescription}<small>{lang}{@$style->styleDescription}{/lang}</small>{/if}
+                                       {if $style->styleDescription}<small>{lang __optional=true}{@$style->styleDescription}{/lang}</small>{/if}
                                </div>
                        </div>
                </li>