diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-06-14 22:57:46 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-06-14 22:57:46 +0000 |
commit | 8f241243f0cd0e50a94f61aa7e918649b35ebf8d (patch) | |
tree | a7c89cc90c46446903045ce6786cf1945410e78c | |
parent | e81ea8336e90a1aee1cf4a95437db8e3023d227e (diff) | |
download | brdo-8f241243f0cd0e50a94f61aa7e918649b35ebf8d.tar.gz brdo-8f241243f0cd0e50a94f61aa7e918649b35ebf8d.tar.bz2 |
- 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.
-rw-r--r-- | modules/book.module | 5 | ||||
-rw-r--r-- | modules/book/book.module | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module index 522dcdeff..8d226800d 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 522dcdeff..8d226800d 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); } } |