From: Matthias Schmidt Date: Wed, 1 May 2013 10:37:34 +0000 (+0200) Subject: Overhauls category implementation X-Git-Tag: 2.0.0_Beta_1~269^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=796fdcf2d43569744f80c16ec29a2141da5700d8;p=GitHub%2FWoltLab%2FWCF.git Overhauls category implementation Closes #1222 --- diff --git a/com.woltlab.wcf/template/categoryOptionList.tpl b/com.woltlab.wcf/template/categoryOptionList.tpl index 2e47acffa8..f362f14359 100644 --- a/com.woltlab.wcf/template/categoryOptionList.tpl +++ b/com.woltlab.wcf/template/categoryOptionList.tpl @@ -1,5 +1,5 @@ -{foreach from=$categoryNodeList item=category} - {if !$maximumNestingLevel|isset || $maximumNestingLevel == -2 || $categoryNodeList->getDepth() <= $maximumNestingLevel} +{foreach from=$categoryNodeList item='category'} + {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() <= $maximumNestingLevel} {/if} {/foreach} \ No newline at end of file diff --git a/wcfsetup/install/files/acp/templates/categoryAdd.tpl b/wcfsetup/install/files/acp/templates/categoryAdd.tpl index 8796968bcc..383205d0b1 100644 --- a/wcfsetup/install/files/acp/templates/categoryAdd.tpl +++ b/wcfsetup/install/files/acp/templates/categoryAdd.tpl @@ -48,13 +48,13 @@
{lang}wcf.global.form.data{/lang} - {if $objectType->getProcessor()->getMaximumNestingLevel() && $categoryNodeList|count} + {if $categoryNodeList->hasChildren() && $objectType->getProcessor()->getMaximumNestingLevel()}
{if $errorField == 'parentCategoryID'} diff --git a/wcfsetup/install/files/acp/templates/categoryList.tpl b/wcfsetup/install/files/acp/templates/categoryList.tpl index eb69daba67..f84f3ef490 100644 --- a/wcfsetup/install/files/acp/templates/categoryList.tpl +++ b/wcfsetup/install/files/acp/templates/categoryList.tpl @@ -1,66 +1,65 @@ {include file='header'} -{if $categoryNodeList|count} +{if $categoryNodeList->hasChildren()}