diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-01 14:40:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-01 14:40:20 +0000 |
commit | 1f206ca2fe5d426dcde696c1d580cf081f2c3213 (patch) | |
tree | 1375de596572e0e52e19c041af740e80d31043c9 | |
parent | bfb535f63e52283c05c88f4414e1ae2a5271cecd (diff) | |
download | brdo-1f206ca2fe5d426dcde696c1d580cf081f2c3213.tar.gz brdo-1f206ca2fe5d426dcde696c1d580cf081f2c3213.tar.bz2 |
- Patch #47066 by Zen: removed dead code.
-rw-r--r-- | modules/book.module | 10 | ||||
-rw-r--r-- | modules/book/book.module | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/modules/book.module b/modules/book.module index 9260c366a..250d8e4f6 100644 --- a/modules/book.module +++ b/modules/book.module @@ -415,12 +415,8 @@ function book_next($node) { * page in the context of the moderation queue. */ function book_content($node, $teaser = FALSE) { - $op = $_POST['op']; - - // Extract the page body. - $node = node_prepare($node, $teaser); - - return $node; + // Return the page body. + return node_prepare($node, $teaser); } /** @@ -430,7 +426,7 @@ function book_content($node, $teaser = FALSE) { * book with extra links to the previous and next pages. */ function book_view(&$node, $teaser = FALSE, $page = FALSE) { - $node = book_content($node, $teaser); + $node = node_prepare($node, $teaser); } /** diff --git a/modules/book/book.module b/modules/book/book.module index 9260c366a..250d8e4f6 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -415,12 +415,8 @@ function book_next($node) { * page in the context of the moderation queue. */ function book_content($node, $teaser = FALSE) { - $op = $_POST['op']; - - // Extract the page body. - $node = node_prepare($node, $teaser); - - return $node; + // Return the page body. + return node_prepare($node, $teaser); } /** @@ -430,7 +426,7 @@ function book_content($node, $teaser = FALSE) { * book with extra links to the previous and next pages. */ function book_view(&$node, $teaser = FALSE, $page = FALSE) { - $node = book_content($node, $teaser); + $node = node_prepare($node, $teaser); } /** |