summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/book.module b/modules/book.module
index 2ef29d6cf..a1e13fef9 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -342,7 +342,7 @@ function book_next($node) {
}
}
-function book_content($node) {
+function book_content($node, $main = 0) {
$op = $_POST["op"];
/*
@@ -376,14 +376,14 @@ function book_content($node) {
ob_end_clean();
}
else {
- $node = node_prepare($node);
+ $node = node_prepare($node, $main);
}
return $node;
}
function book_view($node, $main = 0, $page = 0) {
- $node = book_content($node);
+ $node = book_content($node, $main);
/*
** Display the node. If not displayed on the main page, we render
** the node as a page in the book with extra links to the previous