From: Marcel Werk Date: Fri, 26 Apr 2013 14:36:00 +0000 (+0200) Subject: Fixed active footer menu items X-Git-Tag: 2.0.0_Beta_1~295^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12a64c000f6b4bdb7f358dbfc2b2d5c8167bbb5e;p=GitHub%2FWoltLab%2FWCF.git Fixed active footer menu items --- diff --git a/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php b/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php index 37be301798..b98cbf7487 100644 --- a/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php @@ -89,4 +89,16 @@ class PageMenu extends TreeMenu { return $item->getProcessor()->isVisible(); } + + /** + * @see wcf\system\menu\TreeMenu::setActiveMenuItem() + */ + public function setActiveMenuItem($menuItem) { + if (isset($this->menuItemList[$menuItem]) && $this->menuItemList[$menuItem]->menuPosition == 'footer') { + // ignore footer items + return; + } + + parent::setActiveMenuItem($menuItem); + } }