Fixes icon for custom valued language items
authorMatthias Schmidt <gravatronics@live.com>
Sun, 5 Jan 2014 21:19:44 +0000 (22:19 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 5 Jan 2014 21:19:44 +0000 (22:19 +0100)
If the custom value of a language item is empty, no icon has been displayed.

wcfsetup/install/files/acp/templates/languageItemList.tpl

index e481f07f315729e9fdee4966175adc8a64656e0c..18d13aeccdccd199df08488acdb54a823f875221 100644 (file)
@@ -92,7 +92,7 @@
                                        <div>
                                                <div class="details">
                                                        <div class="containerHeadline">
-                                                               <h3><a class="jsLanguageItem" data-language-item-id="{@$item->languageItemID}">{$item->languageItem}</a>{if $item->languageCustomItemValue} <span class="icon icon16 icon-bookmark jsTooltip" title="{lang}wcf.acp.language.item.hasCustomValue{/lang}"></span>{/if}</h3>
+                                                               <h3><a class="jsLanguageItem" data-language-item-id="{@$item->languageItemID}">{$item->languageItem}</a>{if !$item->languageCustomItemValue|is_null} <span class="icon icon16 icon-bookmark jsTooltip" title="{lang}wcf.acp.language.item.hasCustomValue{/lang}"></span>{/if}</h3>
                                                        </div>
                                                        
                                                        <p>{if $item->languageUseCustomValue}{$item->languageCustomItemValue|truncate:255}{else}{$item->languageItemValue|truncate:255}{/if}</p>