- #23360: Chameleon: fix taxonomy terms disappearing if there are no node links.

4.7.x
Steven Wittens 2005-05-27 05:20:08 +00:00
parent 82e606f7ab
commit ba41568963
1 changed files with 5 additions and 1 deletions

View File

@ -133,8 +133,12 @@ function chameleon_node($node, $main = 0, $page = 0) {
$terms = taxonomy_link("taxonomy terms", $node); $terms = taxonomy_link("taxonomy terms", $node);
} }
$links = array_merge($submitted, $terms);
if ($node->links) { if ($node->links) {
$output .= " <div class=\"links\">". theme('links', array_merge($submitted, $terms, $node->links)) ."</div>\n"; $links = array_merge($links, $node->links);
}
if (count($links)) {
$output .= " <div class=\"links\">". theme('links', $links) ."</div>\n";
} }
$output .= "</div>\n"; $output .= "</div>\n";