From bd8e9dd0af1559eab02cfc67fca9197330354c07 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 24 Jun 2001 19:12:30 +0000 Subject: - Fixed bug in export module when exporting books to HTML. --- modules/book.module | 10 ++++++---- modules/book/book.module | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/book.module b/modules/book.module index 1ec711153..3f7c38bc1 100644 --- a/modules/book.module +++ b/modules/book.module @@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) { if ($node->pid) $output .= book_export_html($node->pid, $depth + 1); $output .= book_export_html($node->nid, $depth + 1); } + return $output; } -function book_export($uri) { - $uri = explode("&", $uri); - if ($uri[0] == "book") { - print book_export_html($uri[1], $depth = 1); +function book_export($query) { + global $book; + + if ($book) { + print book_export_html($book, $depth = 1); } } diff --git a/modules/book/book.module b/modules/book/book.module index 1ec711153..3f7c38bc1 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) { if ($node->pid) $output .= book_export_html($node->pid, $depth + 1); $output .= book_export_html($node->nid, $depth + 1); } + return $output; } -function book_export($uri) { - $uri = explode("&", $uri); - if ($uri[0] == "book") { - print book_export_html($uri[1], $depth = 1); +function book_export($query) { + global $book; + + if ($book) { + print book_export_html($book, $depth = 1); } } -- cgit v1.2.3