diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-04-14 21:03:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-04-14 21:03:59 +0000 |
commit | bbab04378537957a57d72ed55120cf66a8df024b (patch) | |
tree | 503ba72e6941688630b73f7ece3d53c562fc3d74 /modules/book.module | |
parent | a53e34e80e72893844ac1a49b4c7623f1874c6a8 (diff) | |
download | brdo-bbab04378537957a57d72ed55120cf66a8df024b.tar.gz brdo-bbab04378537957a57d72ed55120cf66a8df024b.tar.bz2 |
- Made book_tree_recurse() emit code that validates as XHTML. Patch by Nick
Berendsen.
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/book.module b/modules/book.module index bee2643f0..6900e52ca 100644 --- a/modules/book.module +++ b/modules/book.module @@ -480,11 +480,12 @@ function book_tree_recurse($nid, $depth, $children) { if ($depth > 0) { if ($children[$nid]) { foreach ($children[$nid] as $foo => $node) { - $output .= "<li>". l($node->title, "node/view/$node->nid") ."</li>"; - + $output .= "<li>"; + $output .= l($node->title, "node/view/$node->nid"); if ($tree = book_tree_recurse($node->nid, $depth - 1, $children)) { $output .= "<ul>$tree</ul>"; } + $output .= "</li>"; } } } @@ -756,4 +757,4 @@ function book_help() { </ul> <?php } -?>
\ No newline at end of file +?> |