From f5be5fdfa406db65aaf8c64050b7ed1971a44ec6 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Fri, 23 Nov 2001 17:10:46 +0000 Subject: - modified node_save so that revisions are not validated using check_input, as this breaks revisions. - modified link_node() to take a third parameter $main, which will be passed on to _link hooks. This lets modules decide which links a node will get when shown on the main page, or when not. - updated themes to use the new syntax. --- includes/theme.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index 79fdeb353..60bf86cd0 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -69,8 +69,8 @@ class BaseTheme { else { $output .= check_output($node->body, 1); } - if ($main) { - $output .= "
[ ". $this->links(link_node($node)) ." ]"; + if ($links = link_node($node, $main)) { + $output .= "
[ ". $this->links($links) ." ]"; } $output .= "
"; -- cgit v1.2.3