From 2b7a2f53c18f3304926d20fe7f32e98b0bed992a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 12 May 2016 18:51:41 +0200 Subject: [PATCH] Let MenuItemNode and PageNode extend DatabaseObjectDecorator --- com.woltlab.wcf/templates/__menu.tpl | 8 ++--- com.woltlab.wcf/templates/pageMenuMobile.tpl | 6 ++-- .../install/files/acp/templates/boxAdd.tpl | 4 +-- .../install/files/acp/templates/menuAdd.tpl | 2 +- .../files/acp/templates/menuItemAdd.tpl | 4 +-- .../files/acp/templates/menuItemList.tpl | 18 +++++----- .../install/files/acp/templates/pageAdd.tpl | 2 +- .../files/acp/templates/pageHeaderUser.tpl | 4 +-- .../files/acp/templates/pageMenuMobile.tpl | 4 +-- .../files/lib/acp/form/BoxAddForm.class.php | 4 +-- .../lib/acp/form/MenuItemAddForm.class.php | 4 +-- .../lib/acp/form/MenuItemEditForm.class.php | 4 +-- .../lib/data/menu/item/MenuItemNode.class.php | 32 ++++++++--------- .../data/menu/item/MenuItemNodeTree.class.php | 2 +- .../files/lib/data/page/PageNode.class.php | 34 +++++++++---------- .../page/MultiPageCondition.class.php | 2 +- 16 files changed, 65 insertions(+), 69 deletions(-) diff --git a/com.woltlab.wcf/templates/__menu.tpl b/com.woltlab.wcf/templates/__menu.tpl index ceaa11660b..bc8e7b5897 100644 --- a/com.woltlab.wcf/templates/__menu.tpl +++ b/com.woltlab.wcf/templates/__menu.tpl @@ -2,10 +2,10 @@
    {foreach from=$menuItemNodeList item=menuItemNode}
  1. - - {lang}{$menuItemNode->getMenuItem()->title}{/lang} - {if $menuItemNode->getMenuItem()->getOutstandingItems() > 0} - {#$menuItemNode->getMenuItem()->getOutstandingItems()} + + {lang}{$menuItemNode->title}{/lang} + {if $menuItemNode->getOutstandingItems() > 0} + {#$menuItemNode->getOutstandingItems()} {/if} diff --git a/com.woltlab.wcf/templates/pageMenuMobile.tpl b/com.woltlab.wcf/templates/pageMenuMobile.tpl index 1d97e3da99..eb12845ed7 100644 --- a/com.woltlab.wcf/templates/pageMenuMobile.tpl +++ b/com.woltlab.wcf/templates/pageMenuMobile.tpl @@ -10,9 +10,9 @@