From 13faf6035d726f8a77b7dcac7e8e8fa3b24bfaf2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 27 Oct 2009 14:00:32 -0700 Subject: Remove Menu::compact() in favor of putting an if-then clause in menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus --- modules/gallery/views/menu.html.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/gallery/views') diff --git a/modules/gallery/views/menu.html.php b/modules/gallery/views/menu.html.php index ba16ef36..b4b38c93 100644 --- a/modules/gallery/views/menu.html.php +++ b/modules/gallery/views/menu.html.php @@ -1,4 +1,5 @@ +elements): // Don't show the menu if it has no choices ?> is_root): ?>