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
97a09cb9
Commit
97a09cb9
authored
May 31, 2007
by
Dries
Browse files
- Patch
#147873
by hswong3i: menu SQL fix.
parent
e5738122
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
97a09cb9
...
...
@@ -637,7 +637,7 @@ function menu_tree_all_data($menu_name = 'navigation', $item = NULL, $show_hidde
}
array_unshift
(
$args
,
$menu_name
);
list
(,
$tree
[
$cid
])
=
_menu_tree_data
(
db_query
(
"
SELECT m.*, ml.menu_name, ml.mlid, ml.plid, ml.
href
, ml.router_path, ml.hidden, ml.external, ml.has_children, ml.expanded, ml.weight + 50000 AS weight, ml.depth, ml.p1, ml.p2, ml.p3, ml.p4, ml.p5, ml.p6, ml.module, ml.link_title, ml.options
SELECT m.*, ml.menu_name, ml.mlid, ml.plid, ml.
link_path
, ml.router_path, ml.hidden, ml.external, ml.has_children, ml.expanded, ml.weight + 50000 AS weight, ml.depth, ml.p1, ml.p2, ml.p3, ml.p4, ml.p5, ml.p6, ml.module, ml.link_title, ml.options
FROM
{
menu_links
}
ml LEFT JOIN
{
menu_router
}
m ON m.path = ml.router_path
WHERE ml.menu_name = '%s'"
.
$where
.
"
ORDER BY p1 ASC, p2 ASC, p3 ASC, p4 ASC, p5 ASC"
,
$args
),
$parents
);
...
...
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