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
24a68b20
Commit
24a68b20
authored
Jan 19, 2005
by
Dries
Browse files
- Patch
#9477
by JonBob: improved handling of user-specified paths.
parent
3ec108ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
24a68b20
...
...
@@ -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
];
...
...
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