Skip to content
Snippets Groups Projects
Commit 92b5fc36 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed XHTML glitch in the sitemap.  Thanks Moshe and Michael.
parent a32e3d14
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -120,8 +120,10 @@ function menu_tree($parent = "", $all = 1) {
$output = "<ul>";
while ($item = db_fetch_object($result)) {
$all = (stristr(request_uri(), $item->link) == $item->link) ? 1 : 0;
$output .= "<li>". menu_item($item) ."</li>";
$output .= "<li>";
$output .= menu_item($item);
$output .= menu_tree($item->name, menu_in_trail($item));
$output .= "</li>";
}
$output .= "</ul>";
}
......@@ -136,8 +138,10 @@ function menu_map($parent = "") {
if (db_num_rows($result)) {
$output = "<ul>";
while ($item = db_fetch_object($result)) {
$output .= "<li>". menu_item($item) ."</li>";
$output .= "<li>";
$output .= menu_item($item);
$output .= menu_map($item->name);
$output .= "</li>";
}
$output .= "</ul>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment