- Fixed XHTML glitch in the sitemap. Thanks Moshe and Michael.

4.2.x
Dries Buytaert 2003-01-27 19:15:20 +00:00
parent a32e3d1408
commit 92b5fc369a
1 changed files with 6 additions and 2 deletions

View File

@ -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>";
}