From de30b5990b8a2ff195f07f32e574286cebb2472a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 9 Oct 2013 18:47:17 +0200 Subject: [PATCH] Fixes maximumNestingLevel condition in categoryOptionList.tpl --- com.woltlab.wcf/templates/categoryOptionList.tpl | 4 ++-- wcfsetup/install/files/acp/templates/categoryOptionList.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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} -- 2.20.1