- Patch #9477 by JonBob: improved handling of user-specified paths.

4.6.x
Dries Buytaert 2005-01-19 21:57:58 +00:00
parent 3ec108eccc
commit 24a68b209c
1 changed files with 2 additions and 0 deletions

View File

@ -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];