Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
04cbffcc
Commit
04cbffcc
authored
Sep 07, 2006
by
drumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#78675
by pwolanin. Fix calling order for node links. Seen in book read more links.
parent
2310bd97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/node/node.module
modules/node/node.module
+2
-2
No files found.
modules/node/node.module
View file @
04cbffcc
...
...
@@ -635,6 +635,8 @@ function node_save(&$node) {
function
node_view
(
$node
,
$teaser
=
FALSE
,
$page
=
FALSE
,
$links
=
TRUE
)
{
$node
=
(
object
)
$node
;
$node
=
node_build_content
(
$node
,
$teaser
,
$page
);
if
(
$links
)
{
$node
->
links
=
module_invoke_all
(
'link'
,
'node'
,
$node
,
!
$page
);
...
...
@@ -644,8 +646,6 @@ function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) {
}
}
$node
=
node_build_content
(
$node
,
$teaser
,
$page
);
// Set the proper node part, then unset unused $node part so that a bad
// theme can not open a security hole.
$content
=
drupal_render
(
$node
->
content
);
...
...
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