summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-11 20:16:26 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-11 20:16:26 +0000
commit5ac59aacd2c5d60155b7236c588bed2e750b3e04 (patch)
tree8b18b295a9c9ad90149be5fa4e82d5c71ad5667c /modules/book.module
parent6f80df7762e08c7363f9c5ae86283393eb4ff487 (diff)
downloadbrdo-5ac59aacd2c5d60155b7236c588bed2e750b3e04.tar.gz
brdo-5ac59aacd2c5d60155b7236c588bed2e750b3e04.tar.bz2
- Applied patch #4949: node_prepare() wastes resources. Patch by Goba.
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