From f7b8a6c5da06f6318c515b2a804845c152d3fac0 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 17 Nov 2009 03:07:29 +0000 Subject: #540282 follow-up by David_Rothstein: Removed accidentally introduced menu module dependency from toolbar module. --- modules/toolbar/toolbar.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index c137942e5..bbfa5b96d 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -159,13 +159,13 @@ function toolbar_build() { ); // Retrieve the admin menu from the database. - $main_menu = menu_load('management'); $links = toolbar_menu_navigation_links(toolbar_get_menu_tree()); + $system_menus = menu_list_system_menus(); $build['toolbar_menu'] = array( '#theme' => 'links', '#links' => $links, '#attributes' => array('id' => 'toolbar-menu'), - '#heading' => array('text' => $main_menu['title'], 'level' => 'h2', 'class' => 'element-invisible'), + '#heading' => array('text' => t($system_menus['management']), 'level' => 'h2', 'class' => 'element-invisible'), ); // Add logout & user account links or login link -- cgit v1.2.3