diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-19 21:57:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-19 21:57:58 +0000 |
commit | 24a68b209c8b83a9cb5a71794f5512fd721fd1ac (patch) | |
tree | 8a4602cffd651497ab56cc2709d1cc687bcb617a | |
parent | 3ec108eccc5e77d18209e555f3f979bcf122aeaf (diff) | |
download | brdo-24a68b209c8b83a9cb5a71794f5512fd721fd1ac.tar.gz brdo-24a68b209c8b83a9cb5a71794f5512fd721fd1ac.tar.bz2 |
- Patch #9477 by JonBob: improved handling of user-specified paths.
-rw-r--r-- | includes/menu.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 82ab9c8c6..4e0eafce1 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -728,6 +728,8 @@ function _menu_build() { if (module_exist('menu')) { $result = db_query('SELECT * FROM {menu} ORDER BY mid ASC'); while ($item = db_fetch_object($result)) { + // Handle URL aliases if entered in menu administration. + $item->path = drupal_get_normal_path($item->path); if (array_key_exists($item->path, $_menu['path index'])) { // The path is already declared. $old_mid = $_menu['path index'][$item->path]; |