diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-01 21:58:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-01 21:58:46 +0000 |
commit | fbbf51051159d9ace934d206f63e5b3061c0a767 (patch) | |
tree | 9b445dbd4e6a1745634cd7da233ebff58528594e /includes/menu.inc | |
parent | 6482708fe7ab60fff4bb94dd747e623c11e9126d (diff) | |
download | brdo-fbbf51051159d9ace934d206f63e5b3061c0a767.tar.gz brdo-fbbf51051159d9ace934d206f63e5b3061c0a767.tar.bz2 |
- Patch #8105 by mathias: made the menu system aware of path aliases.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 0e208786b..49f13a06c 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -176,7 +176,7 @@ function menu_get_active_breadcrumb() { $links[] = l(t('Home'), ''); - $trail = menu_get_trail($_GET['q']); + $trail = menu_get_trail(drupal_get_path_alias($_GET['q'])); // The last item in the trail is the page title; don't display it here. array_pop($trail); @@ -249,7 +249,7 @@ function menu_in_active_trail($mid) { static $trail; if (empty($trail)) { - $trail = menu_get_trail($_GET['q']); + $trail = menu_get_trail(drupal_get_path_alias($_GET['q'])); } return in_array($mid, $trail); |