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
838b4c65
Commit
838b4c65
authored
Aug 14, 2009
by
webchick
Browse files
#528204
by rfay: Fixed menu item sorting so it is now case in-sensitive.
parent
6e3832f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.module
View file @
838b4c65
...
...
@@ -1582,7 +1582,7 @@ function system_admin_menu_block($item) {
}
// Prepare for sorting as in function _menu_tree_check_access().
// The weight is offset so it is always positive, with a uniform 5-digits.
$content
[(
50000
+
$link
[
'weight'
])
.
' '
.
$link
[
'title'
]
.
' '
.
$link
[
'mlid'
]]
=
$link
;
$content
[(
50000
+
$link
[
'weight'
])
.
' '
.
drupal_strtolower
(
$link
[
'title'
]
)
.
' '
.
$link
[
'mlid'
]]
=
$link
;
}
ksort
(
$content
);
$cache
[
$item
[
'mlid'
]]
=
$content
;
...
...
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