summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-05-13 10:02:54 +0000
committerDries Buytaert <dries@buytaert.net>2006-05-13 10:02:54 +0000
commit21649210f354495f7d7f6dfed31bdefa3cbf4509 (patch)
treecfc0e7f55a4bbe82b08a1275f9316456e1d1a961
parent49b90a5d0460ccc4a2fd28001185204707a2c8b6 (diff)
downloadbrdo-21649210f354495f7d7f6dfed31bdefa3cbf4509.tar.gz
brdo-21649210f354495f7d7f6dfed31bdefa3cbf4509.tar.bz2
- Patch #60224 by rkerr: one page book showing another book in navigation links.
-rw-r--r--modules/book.module2
-rw-r--r--modules/book/book.module2
2 files changed, 2 insertions, 2 deletions
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)) {