diff --git includes/bootstrap.inc includes/bootstrap.inc index 1eb92da..49abbd4 100644 --- includes/bootstrap.inc +++ includes/bootstrap.inc @@ -1588,8 +1588,8 @@ function drupal_get_title() { $title = drupal_set_title(); // During a bootstrap, menu.inc is not included and thus we cannot provide a title. - if (!isset($title) && function_exists('menu_get_active_title')) { - $title = check_plain(menu_get_active_title()); + if (!isset($title) && function_exists('menu_get_title')) { + $title = check_plain(menu_get_title()); } return $title; diff --git includes/menu.inc includes/menu.inc index fb61fd3..e6d16ec 100644 --- includes/menu.inc +++ includes/menu.inc @@ -2488,6 +2488,14 @@ function menu_get_active_title() { } /** + * Get the title of the current page + */ +function menu_get_title() { + $item = menu_get_item(); + return $item['title']; +} + +/** * Get a menu link by its mlid, access checked and link translated for rendering. * * This function should never be called from within node_load() or any other