From: Marcel Werk Date: Tue, 17 Mar 2020 15:11:44 +0000 (+0100) Subject: Suppress the option for i18n articles when there is only a single language X-Git-Tag: 5.2.4~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe6c931baea13e0ec0a5257871ad548a345b46ee;p=GitHub%2FWoltLab%2FWCF.git Suppress the option for i18n articles when there is only a single language --- diff --git a/com.woltlab.wcf/templates/categoryArticleList.tpl b/com.woltlab.wcf/templates/categoryArticleList.tpl index e102ee0bdf..dedc0181d4 100644 --- a/com.woltlab.wcf/templates/categoryArticleList.tpl +++ b/com.woltlab.wcf/templates/categoryArticleList.tpl @@ -30,7 +30,11 @@ {if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle')} {capture assign='contentHeaderNavigation'} -
  • {lang}wcf.acp.article.add{/lang}
  • + {if $availableLanguages|count > 1} +
  • {lang}wcf.acp.article.add{/lang}
  • + {else} +
  • {lang}wcf.acp.article.add{/lang}
  • + {/if} {/capture} {/if}