Fixed active footer menu items
authorMarcel Werk <burntime@woltlab.com>
Fri, 26 Apr 2013 14:36:00 +0000 (16:36 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 26 Apr 2013 14:36:00 +0000 (16:36 +0200)
wcfsetup/install/files/lib/system/menu/page/PageMenu.class.php

index 37be301798f387466d33dc6f18b2fc4480e2bf67..b98cbf7487d682e0bbba6c1fed337df9a9b18e1d 100644 (file)
@@ -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);
+       }
 }