Removed dead link if profile is protected
authorMarcel Werk <burntime@woltlab.com>
Thu, 27 Aug 2015 22:15:38 +0000 (00:15 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 27 Aug 2015 22:15:38 +0000 (00:15 +0200)
com.woltlab.wcf/templates/userSidebar.tpl

index 8f0876ef7784fdf4a6eca8dacf497af566e7cb10..815d7a574c74fb466b1a6d2f03d7827e82ad1765 100644 (file)
@@ -19,7 +19,7 @@
                                {event name='statistics'}
                                
                                {if MODULE_LIKE && $user->likesReceived}
-                                       <dt><a href="{link controller='User' object=$user}{/link}#likes" class="jsTooltip" title="{lang}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a></dt>
+                                       <dt>{if !$user->isProtected()}<a href="{link controller='User' object=$user}{/link}#likes" class="jsTooltip" title="{lang}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a>{else}{lang}wcf.like.likesReceived{/lang}{/if}</dt>
                                        <dd>{#$user->likesReceived}</dd>
                                {/if}