Curt mustn't have updated his patch, $children[$parent] needs to be changed to $children[$valsub] (on the indicated line below) otherwise the function list and other 'sub-TOCs' are broken.



Matt


Ilia Alshanetsky wrote:
> iliaa Wed Feb 9 15:03:44 2005 EDT
>
> Modified files:
> /livedocs livedoc_funcs.php
> Log:
> Fixed bug #30204
>
>
> http://cvs.php.net/diff.php/livedocs/livedoc_funcs.php?r1=1.20&r2=1.21&ty=u
> Index: livedocs/livedoc_funcs.php
> diff -u livedocs/livedoc_funcs.php:1.20 livedocs/livedoc_funcs.php:1.21
> --- livedocs/livedoc_funcs.php:1.20 Wed Feb 9 14:47:38 2005
> +++ livedocs/livedoc_funcs.php Wed Feb 9 15:03:43 2005
> @@ -11,13 +11,35 @@
> include LIVEDOC_SOURCE . '/handlers.php';
> include LIVEDOC_SOURCE . '/themes/' . THEME_NAME . '/html_format.php';


[snip]

> +function do_nav_children($idx, $parent, $lang, $current_page, &$nav, &$children) {
> + if ($current_page != 'manual' ) {
> + $rsub = (array) sqlite_single_query($idx, "SELECT docbook_id FROM toc WHERE parent_docbook_id = '$current_page' ORDER BY id");
> + foreach ($rsub as $valsub) {
> + $nav .= do_nav_line($valsub, 'downdown', $current_page, $lang, $title);
> + $children[$parent] = $title; <---------
> + }
> + }
> +}
>

Reply via email to