From a25f0a04682c4c39c1947220c90af4118c713952 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sun, 1 Feb 2015 00:01:36 +0000 Subject: Refactor classes to use namespaces, as per PSR-4. Replace GPL2 with GPL3. --- themes/_custom/theme.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'themes/_custom/theme.php') diff --git a/themes/_custom/theme.php b/themes/_custom/theme.php index 74f54eaea7..b3698ce8b9 100644 --- a/themes/_custom/theme.php +++ b/themes/_custom/theme.php @@ -1,5 +1,7 @@ getSubmenus(), function(WT_Menu $menu) { + $submenus = array_filter($menu->getSubmenus(), function(Menu $menu) { return $menu->getId() !== 'menu-list-note'; }); // Replace the sub-menus $menu->setSubmenus($submenus); - } catch (Exception $ex) { + } catch (\Exception $ex) { // Something went wrong with our script? Maybe the core code was updated? // Use the default behaviour instead, so that our theme continues to work. return parent::menuLists(); -- cgit v1.3