From: Tim Düsterhus Date: Wed, 10 Mar 2021 08:31:04 +0000 (+0100) Subject: Remove useless emptyness checks in index.tpl X-Git-Tag: 5.4.0_Alpha_1~178^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03fa29ce6b930a88b8e7bc29ee5f5d5070bf9dc2;p=GitHub%2FWoltLab%2FWCF.git Remove useless emptyness checks in index.tpl --- diff --git a/wcfsetup/install/files/acp/templates/index.tpl b/wcfsetup/install/files/acp/templates/index.tpl index 90f2074015..f5ece6681a 100644 --- a/wcfsetup/install/files/acp/templates/index.tpl +++ b/wcfsetup/install/files/acp/templates/index.tpl @@ -4,16 +4,12 @@

{lang}wcf.global.acp{/lang}

-{if !$evaluationExpired|empty} - {foreach from=$evaluationExpired item=$expiredApp} -

{lang packageName=$expiredApp[packageName] isWoltLab=$expiredApp[isWoltLab] pluginStoreFileID=$expiredApp[pluginStoreFileID]}wcf.acp.package.evaluation.expired{/lang}

- {/foreach} -{/if} -{if !$evaluationPending|empty} - {foreach from=$evaluationPending key=$evaluationEndDate item=$pendingApps} -
{lang evaluationEndDate=$evaluationEndDate}wcf.acp.package.evaluation.pending{/lang}
- {/foreach} -{/if} +{foreach from=$evaluationExpired item=$expiredApp} +

{lang packageName=$expiredApp[packageName] isWoltLab=$expiredApp[isWoltLab] pluginStoreFileID=$expiredApp[pluginStoreFileID]}wcf.acp.package.evaluation.expired{/lang}

+{/foreach} +{foreach from=$evaluationPending key=$evaluationEndDate item=$pendingApps} +
{lang evaluationEndDate=$evaluationEndDate}wcf.acp.package.evaluation.pending{/lang}
+{/foreach} {if TMP_DIR !== WCF_DIR|concat:'tmp/'}

{lang}wcf.acp.index.tmpBroken{/lang}