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
bd8e9dd0
Commit
bd8e9dd0
authored
Jun 24, 2001
by
Dries
Browse files
- Fixed bug in export module when exporting books to HTML.
parent
33813073
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
bd8e9dd0
...
...
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if
(
$node
->
pid
)
$output
.
=
book_export_html
(
$node
->
pid
,
$depth
+
1
);
$output
.
=
book_export_html
(
$node
->
nid
,
$depth
+
1
);
}
return
$output
;
}
function
book_export
(
$uri
)
{
$uri
=
explode
(
"&"
,
$uri
);
if
(
$uri
[
0
]
==
"book"
)
{
print
book_export_html
(
$uri
[
1
],
$depth
=
1
);
function
book_export
(
$query
)
{
global
$book
;
if
(
$book
)
{
print
book_export_html
(
$book
,
$depth
=
1
);
}
}
...
...
modules/book/book.module
View file @
bd8e9dd0
...
...
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if
(
$node
->
pid
)
$output
.
=
book_export_html
(
$node
->
pid
,
$depth
+
1
);
$output
.
=
book_export_html
(
$node
->
nid
,
$depth
+
1
);
}
return
$output
;
}
function
book_export
(
$uri
)
{
$uri
=
explode
(
"&"
,
$uri
);
if
(
$uri
[
0
]
==
"book"
)
{
print
book_export_html
(
$uri
[
1
],
$depth
=
1
);
function
book_export
(
$query
)
{
global
$book
;
if
(
$book
)
{
print
book_export_html
(
$book
,
$depth
=
1
);
}
}
...
...
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