summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/book.module1
-rw-r--r--modules/book/book.module1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/book.module b/modules/book.module
index 346bf66bd..746b8e5fe 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -674,6 +674,7 @@ function book_export($type = 'html', $nid = 0) {
global $base_url;
$type = drupal_strtolower($type);
$depth = _book_get_depth($nid);
+ $node = node_load($nid);
switch ($type) {
case 'docbook':
$xml = "<?xml version='1.0'?>\n";
diff --git a/modules/book/book.module b/modules/book/book.module
index 346bf66bd..746b8e5fe 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -674,6 +674,7 @@ function book_export($type = 'html', $nid = 0) {
global $base_url;
$type = drupal_strtolower($type);
$depth = _book_get_depth($nid);
+ $node = node_load($nid);
switch ($type) {
case 'docbook':
$xml = "<?xml version='1.0'?>\n";