Commit 04cbffcc authored by drumm's avatar drumm
Browse files

#78675 by pwolanin. Fix calling order for node links. Seen in book read more links.

parent 2310bd97
...@@ -635,6 +635,8 @@ function node_save(&$node) { ...@@ -635,6 +635,8 @@ function node_save(&$node) {
function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) { function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) {
$node = (object)$node; $node = (object)$node;
$node = node_build_content($node, $teaser, $page);
if ($links) { if ($links) {
$node->links = module_invoke_all('link', 'node', $node, !$page); $node->links = module_invoke_all('link', 'node', $node, !$page);
...@@ -644,8 +646,6 @@ function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) { ...@@ -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 // Set the proper node part, then unset unused $node part so that a bad
// theme can not open a security hole. // theme can not open a security hole.
$content = drupal_render($node->content); $content = drupal_render($node->content);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment