Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7b5b4605
Commit
7b5b4605
authored
Oct 06, 2005
by
Dries
Browse files
Improved error-handling of book module.
parent
eafcfa15
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
7b5b4605
...
...
@@ -634,12 +634,12 @@ function book_render() {
* - an integer representing the node id (nid) of the node to export
*
*/
function
book_export
(
$type
=
'html'
,
$nid
=
0
)
{
function
book_export
(
$type
=
'html'
,
$nid
=
FALSE
)
{
global
$base_url
;
$type
=
drupal_strtolower
(
$type
);
if
(
$nid
)
{
$node
=
node_load
(
$nid
);
if
(
$node
)
{
$depth
=
_book_get_depth
(
$nid
);
$node
=
node_load
(
$nid
);
switch
(
$type
)
{
case
'docbook'
:
$xml
=
"<?xml version='1.0'?>
\n
"
;
...
...
modules/book/book.module
View file @
7b5b4605
...
...
@@ -634,12 +634,12 @@ function book_render() {
* - an integer representing the node id (nid) of the node to export
*
*/
function
book_export
(
$type
=
'html'
,
$nid
=
0
)
{
function
book_export
(
$type
=
'html'
,
$nid
=
FALSE
)
{
global
$base_url
;
$type
=
drupal_strtolower
(
$type
);
if
(
$nid
)
{
$node
=
node_load
(
$nid
);
if
(
$node
)
{
$depth
=
_book_get_depth
(
$nid
);
$node
=
node_load
(
$nid
);
switch
(
$type
)
{
case
'docbook'
:
$xml
=
"<?xml version='1.0'?>
\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment