From: Joshua Rüsweg Date: Fri, 10 May 2019 11:25:48 +0000 (+0200) Subject: Fix article report button if reaction system is disabled X-Git-Tag: 5.2.0_Alpha_1~97 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ef0dc4caf5be850086ec1da86b64544a3a5e91d;p=GitHub%2FWoltLab%2FWCF.git Fix article report button if reaction system is disabled Fix #2926 --- diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index 5ff3bb2659..c4cca3639e 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -157,26 +157,27 @@ {/if} - {if MODULE_LIKE && ARTICLE_ENABLE_LIKE && ($__wcf->session->getPermission('user.like.canLike') || $__wcf->session->getPermission('user.like.canViewLike'))} -
- {if $__wcf->session->getPermission('user.like.canViewLike')} -
-
- {include file="reactionSummaryList" reactionData=$articleLikeData objectType="com.woltlab.wcf.likeableArticle" objectID=$article->articleID} -
-
- {/if} - - {if MODULE_LIKE && $__wcf->session->getPermission('user.like.canLike') && (LIKE_ALLOW_FOR_OWN_CONTENT || $article->userID != $__wcf->user->userID)} -
- +
+ {if MODULE_LIKE && ARTICLE_ENABLE_LIKE && $__wcf->session->getPermission('user.like.canViewLike')} +
+
+ {include file="reactionSummaryList" reactionData=$articleLikeData objectType="com.woltlab.wcf.likeableArticle" objectID=$article->articleID}
- {/if} +
+ {/if} + + +
+
    + {if MODULE_LIKE && ARTICLE_ENABLE_LIKE && $__wcf->session->getPermission('user.like.canLike') && (LIKE_ALLOW_FOR_OWN_CONTENT || $article->userID != $__wcf->user->userID)} +
  • + {/if} + {if $__wcf->session->getPermission('user.profile.canReportContent')} +
  • + {/if} +
- {/if} +
{event name='afterArticleContent'}