From: Matthias Schmidt Date: Wed, 9 Oct 2013 16:47:17 +0000 (+0200) Subject: Fixes maximumNestingLevel condition in categoryOptionList.tpl X-Git-Tag: 2.0.0_Beta_11~34^2~3^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de30b5990b8a2ff195f07f32e574286cebb2472a;p=GitHub%2FWoltLab%2FWCF.git Fixes maximumNestingLevel condition in categoryOptionList.tpl --- diff --git a/com.woltlab.wcf/templates/categoryOptionList.tpl b/com.woltlab.wcf/templates/categoryOptionList.tpl index f362f14359..0d0860db0e 100644 --- a/com.woltlab.wcf/templates/categoryOptionList.tpl +++ b/com.woltlab.wcf/templates/categoryOptionList.tpl @@ -1,5 +1,5 @@ {foreach from=$categoryNodeList item='category'} - {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() <= $maximumNestingLevel} + {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() < $maximumNestingLevel} {/if} -{/foreach} \ No newline at end of file +{/foreach} diff --git a/wcfsetup/install/files/acp/templates/categoryOptionList.tpl b/wcfsetup/install/files/acp/templates/categoryOptionList.tpl index f362f14359..0d0860db0e 100644 --- a/wcfsetup/install/files/acp/templates/categoryOptionList.tpl +++ b/wcfsetup/install/files/acp/templates/categoryOptionList.tpl @@ -1,5 +1,5 @@ {foreach from=$categoryNodeList item='category'} - {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() <= $maximumNestingLevel} + {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() < $maximumNestingLevel} {/if} -{/foreach} \ No newline at end of file +{/foreach}