Commit fe5f70b6 authored by Dries's avatar Dries

- Patch #31496 by Goba: added missing $node object in book export.

parent bef5cb0c
......@@ -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";
......
......@@ -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";
......
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