From 8f241243f0cd0e50a94f61aa7e918649b35ebf8d Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Thu, 14 Jun 2001 22:57:46 +0000 Subject: [PATCH] - Fixed a export bug. You can now export books by using http://site/export.php?book&node_id The export feature should be expanded to allow titles to be used, and made more flexible. Will look more at this during the weekend. --- modules/book.module | 5 +++-- modules/book/book.module | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/book.module b/modules/book.module index 522dcdeffa..8d226800dc 100644 --- a/modules/book.module +++ b/modules/book.module @@ -258,8 +258,9 @@ function book_export_html($parent = "", $depth = 0) { } function book_export($uri) { - if ($uri[2] == "book") { - print book_export_html($uri[3], $depth = 1); + $uri = explode("&", $uri); + if ($uri[0] == "book") { + print book_export_html($uri[1], $depth = 1); } } diff --git a/modules/book/book.module b/modules/book/book.module index 522dcdeffa..8d226800dc 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -258,8 +258,9 @@ function book_export_html($parent = "", $depth = 0) { } function book_export($uri) { - if ($uri[2] == "book") { - print book_export_html($uri[3], $depth = 1); + $uri = explode("&", $uri); + if ($uri[0] == "book") { + print book_export_html($uri[1], $depth = 1); } } -- GitLab