From 21649210f354495f7d7f6dfed31bdefa3cbf4509 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 13 May 2006 10:02:54 +0000 Subject: - Patch #60224 by rkerr: one page book showing another book in navigation links. --- modules/book.module | 2 +- modules/book/book.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/book.module b/modules/book.module index 3848be196..8af126911 100644 --- a/modules/book.module +++ b/modules/book.module @@ -424,7 +424,7 @@ function book_next($node) { } // No direct child: get next for this level or any parent in this book. - $path[] = book_location($node); // Path to top-level node including this one. + $path = book_location($node); // Path to top-level node including this one. $path[] = $node; while (($leaf = array_pop($path)) && count($path)) { diff --git a/modules/book/book.module b/modules/book/book.module index 3848be196..8af126911 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -424,7 +424,7 @@ function book_next($node) { } // No direct child: get next for this level or any parent in this book. - $path[] = book_location($node); // Path to top-level node including this one. + $path = book_location($node); // Path to top-level node including this one. $path[] = $node; while (($leaf = array_pop($path)) && count($path)) { -- cgit v1.2.3