Commit bd8e9dd0 authored by Dries's avatar Dries

- Fixed bug in export module when exporting books to HTML.
parent 33813073
...@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) { ...@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if ($node->pid) $output .= book_export_html($node->pid, $depth + 1); if ($node->pid) $output .= book_export_html($node->pid, $depth + 1);
$output .= book_export_html($node->nid, $depth + 1); $output .= book_export_html($node->nid, $depth + 1);
} }
return $output; return $output;
} }
function book_export($uri) { function book_export($query) {
$uri = explode("&", $uri); global $book;
if ($uri[0] == "book") {
print book_export_html($uri[1], $depth = 1); if ($book) {
print book_export_html($book, $depth = 1);
} }
} }
......
...@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) { ...@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if ($node->pid) $output .= book_export_html($node->pid, $depth + 1); if ($node->pid) $output .= book_export_html($node->pid, $depth + 1);
$output .= book_export_html($node->nid, $depth + 1); $output .= book_export_html($node->nid, $depth + 1);
} }
return $output; return $output;
} }
function book_export($uri) { function book_export($query) {
$uri = explode("&", $uri); global $book;
if ($uri[0] == "book") {
print book_export_html($uri[1], $depth = 1); if ($book) {
print book_export_html($book, $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