diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-11-28 12:03:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-11-28 12:03:11 +0000 |
commit | 76eace311e206c352d9d965a099d5d4cc457249a (patch) | |
tree | f5c1b1919552b98fefdb5e56afdca5c6d8c5648a /includes | |
parent | 9b8afe1620499edbc3180679290d3c74189ec631 (diff) | |
download | brdo-76eace311e206c352d9d965a099d5d4cc457249a.tar.gz brdo-76eace311e206c352d9d965a099d5d4cc457249a.tar.bz2 |
- Usability improvement: only display subtabs if there is more than one subtab. If there is only one, make sure it is the set to be the default subtab and all is well.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 15f72f67e..82ab9c8c6 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -610,7 +610,7 @@ function theme_menu_local_tasks() { $output .= "</ul>\n"; foreach ($local_tasks[$pid]['children'] as $mid) { - if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children'])) { + if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children']) > 1) { $output .= "<ul class=\"tabs secondary\">\n"; foreach ($local_tasks[$mid]['children'] as $cid) { $output .= theme('menu_local_task', $cid, menu_in_active_trail($cid)); |