Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
bd8e9dd0
Commit
bd8e9dd0
authored
Jun 24, 2001
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed bug in export module when exporting books to HTML.
parent
33813073
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
modules/book.module
modules/book.module
+6
-4
modules/book/book.module
modules/book/book.module
+6
-4
No files found.
modules/book.module
View file @
bd8e9dd0
...
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
...
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if
(
$node
->
pid
)
$output
.
=
book_export_html
(
$node
->
pid
,
$depth
+
1
);
if
(
$node
->
pid
)
$output
.
=
book_export_html
(
$node
->
pid
,
$depth
+
1
);
$output
.
=
book_export_html
(
$node
->
nid
,
$depth
+
1
);
$output
.
=
book_export_html
(
$node
->
nid
,
$depth
+
1
);
}
}
return
$output
;
return
$output
;
}
}
function
book_export
(
$uri
)
{
function
book_export
(
$query
)
{
$uri
=
explode
(
"&"
,
$uri
);
global
$book
;
if
(
$uri
[
0
]
==
"book"
)
{
print
book_export_html
(
$uri
[
1
],
$depth
=
1
);
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) {
...
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if
(
$node
->
pid
)
$output
.
=
book_export_html
(
$node
->
pid
,
$depth
+
1
);
if
(
$node
->
pid
)
$output
.
=
book_export_html
(
$node
->
pid
,
$depth
+
1
);
$output
.
=
book_export_html
(
$node
->
nid
,
$depth
+
1
);
$output
.
=
book_export_html
(
$node
->
nid
,
$depth
+
1
);
}
}
return
$output
;
return
$output
;
}
}
function
book_export
(
$uri
)
{
function
book_export
(
$query
)
{
$uri
=
explode
(
"&"
,
$uri
);
global
$book
;
if
(
$uri
[
0
]
==
"book"
)
{
print
book_export_html
(
$uri
[
1
],
$depth
=
1
);
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