summaryrefslogtreecommitdiff
path: root/includes/menu.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-04-20 22:29:50 -0400
committerDries Buytaert <dries@buytaert.net>2011-04-20 22:29:50 -0400
commit8ae9b6f6d82642e6b608843c5e7508f995de00e7 (patch)
tree55cca41b9db10a16066abe7206e5029fd43ae069 /includes/menu.inc
parentc1c5aa1d7875408f5f9238a060060ed6e1e3b8e3 (diff)
downloadbrdo-8ae9b6f6d82642e6b608843c5e7508f995de00e7.tar.gz
brdo-8ae9b6f6d82642e6b608843c5e7508f995de00e7.tar.bz2
- Patch #965272 by larowlan, bellHead, TR: items defined with type MENU_CALLBACK show 'Home' as a title.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r--includes/menu.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 4757c77c6..baf5e28aa 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -2321,11 +2321,11 @@ function menu_set_active_trail($new_trail = NULL) {
}
list($key, $curr) = each($tree);
}
- // Make sure the current page is in the trail (needed for the page title),
- // if the link's type allows it to be shown in the breadcrumb. Also exclude
- // it if we are on the front page.
+ // Make sure the current page is in the trail to build the page title, by
+ // appending either the preferred link or the menu router item for the
+ // current page. Exclude it if we are on the front page.
$last = end($trail);
- if ($last['href'] != $preferred_link['href'] && ($preferred_link['type'] & MENU_VISIBLE_IN_BREADCRUMB) == MENU_VISIBLE_IN_BREADCRUMB && !drupal_is_front_page()) {
+ if ($last['href'] != $preferred_link['href'] && !drupal_is_front_page()) {
$trail[] = $preferred_link;
}
}