Commit 72529877 authored by Dries's avatar Dries

- Patch #7271 by JonBob: avoid filling the database with menu items.

parent 7231c88a
......@@ -310,10 +310,10 @@ function menu_overview_tree_rows($pid = 0, $depth = 0) {
$title = '';
if ($pid == 0) {
// Top-level items are menu names, and don't have an associated path.
$title .= t($menu['items'][$mid]['title']);
$title .= $menu['items'][$mid]['title'];
}
else {
$title .= l(t($menu['items'][$mid]['title']), $menu['items'][$mid]['path']);
$title .= l($menu['items'][$mid]['title'], $menu['items'][$mid]['path']);
}
if ($depth > 0) {
$title = '- '. $title;
......
......@@ -310,10 +310,10 @@ function menu_overview_tree_rows($pid = 0, $depth = 0) {
$title = '';
if ($pid == 0) {
// Top-level items are menu names, and don't have an associated path.
$title .= t($menu['items'][$mid]['title']);
$title .= $menu['items'][$mid]['title'];
}
else {
$title .= l(t($menu['items'][$mid]['title']), $menu['items'][$mid]['path']);
$title .= l($menu['items'][$mid]['title'], $menu['items'][$mid]['path']);
}
if ($depth > 0) {
$title = '- '. $title;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment