Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b7a99363
Commit
b7a99363
authored
Jan 16, 2006
by
Dries
Browse files
- Patch
#9477
by Neil and Richard: fixed inconsistent behavior of user-specified paths.
parent
54b8ad65
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
b7a99363
...
...
@@ -1003,7 +1003,9 @@ function _menu_build() {
$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
(
!
isset
(
$_menu
[
'path index'
][
$item
->
path
]))
{
$item
->
path
=
drupal_get_normal_path
(
$item
->
path
);
}
if
(
isset
(
$_menu
[
'path index'
][
$item
->
path
]))
{
// The path is already declared.
$old_mid
=
$_menu
[
'path index'
][
$item
->
path
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment