diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-10-27 14:00:32 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-10-27 14:00:32 -0700 |
commit | 13faf6035d726f8a77b7dcac7e8e8fa3b24bfaf2 (patch) | |
tree | c458a11bbe520834ffd20ffe9ccc35e30152a458 /modules/gallery/libraries/Admin_View.php | |
parent | 3b66ea3c3a4889c3ab3a2da0626fa5b554c1a7c9 (diff) |
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
Diffstat (limited to 'modules/gallery/libraries/Admin_View.php')
-rw-r--r-- | modules/gallery/libraries/Admin_View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php index 4cbefbbd..cbb781a1 100644 --- a/modules/gallery/libraries/Admin_View.php +++ b/modules/gallery/libraries/Admin_View.php @@ -47,7 +47,7 @@ class Admin_View_Core extends Gallery_View { public function admin_menu() { $menu = Menu::factory("root"); module::event("admin_menu", $menu, $this); - return $menu->compact()->render(); + return $menu->render(); } /** |