summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-24 19:12:30 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-24 19:12:30 +0000
commitbd8e9dd0af1559eab02cfc67fca9197330354c07 (patch)
treeb3032f415477b45760d567c3ac12fec9d223efb6
parent338130736750ab090a49b67130d3642a79195617 (diff)
downloadbrdo-bd8e9dd0af1559eab02cfc67fca9197330354c07.tar.gz
brdo-bd8e9dd0af1559eab02cfc67fca9197330354c07.tar.bz2
- Fixed bug in export module when exporting books to HTML.
-rw-r--r--modules/book.module10
-rw-r--r--modules/book/book.module10
2 files changed, 12 insertions, 8 deletions
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);
}
}