Skip to content
Snippets Groups Projects
Commit fe5f70b6 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent bef5cb0c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -674,6 +674,7 @@ function book_export($type = 'html', $nid = 0) { ...@@ -674,6 +674,7 @@ function book_export($type = 'html', $nid = 0) {
global $base_url; global $base_url;
$type = drupal_strtolower($type); $type = drupal_strtolower($type);
$depth = _book_get_depth($nid); $depth = _book_get_depth($nid);
$node = node_load($nid);
switch ($type) { switch ($type) {
case 'docbook': case 'docbook':
$xml = "<?xml version='1.0'?>\n"; $xml = "<?xml version='1.0'?>\n";
......
...@@ -674,6 +674,7 @@ function book_export($type = 'html', $nid = 0) { ...@@ -674,6 +674,7 @@ function book_export($type = 'html', $nid = 0) {
global $base_url; global $base_url;
$type = drupal_strtolower($type); $type = drupal_strtolower($type);
$depth = _book_get_depth($nid); $depth = _book_get_depth($nid);
$node = node_load($nid);
switch ($type) { switch ($type) {
case 'docbook': case 'docbook':
$xml = "<?xml version='1.0'?>\n"; $xml = "<?xml version='1.0'?>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment