Commit 8f241243 authored by Kjartan's avatar Kjartan

- 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.
parent e81ea833
......@@ -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);
}
}
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment