Merge branch 'master' into next
authorMatthias Schmidt <gravatronics@live.com>
Tue, 19 Mar 2019 17:38:19 +0000 (18:38 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 19 Mar 2019 17:38:19 +0000 (18:38 +0100)
1  2 
com.woltlab.wcf/templates/userInformationStatistics.tpl

index 5594c83760c0e5c97de20f2918797ac4e9341737,de7c476987c1a82692f96ec27eab3a2c10e1fe45..a5fd11537848e38be44ca242bb9c2a543bec0917
@@@ -1,11 -1,10 +1,13 @@@
+ {if !$disableDialogLinks|isset}{assign var=disableDialogLinks value=false}{/if}
  {event name='statistics'}
  
 -{if MODULE_LIKE && $user->likesReceived}
 -      <dt>{if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile') && !$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 MODULE_LIKE}
 +      {assign var=reactionReputation value=$user->positiveReactionsReceived - $user->negativeReactionsReceived}
 +      {if $reactionReputation}
 +              <dt>{if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile') && !$user->isProtected()}<a href="{link controller='User' object=$user}{/link}#likes" class="jsTooltip" title="{lang}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.reputation{/lang}</a>{else}{lang}wcf.like.reputation{/lang}{/if}</dt>
 +              <dd>{#$reactionReputation}</dd>
 +      {/if}
  {/if}
  
  {if $user->activityPoints}