diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-05-27 05:20:08 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-05-27 05:20:08 +0000 |
commit | ba41568963b1358bb830d7804355855c8d8213ce (patch) | |
tree | bdbcbd3b35d86c2c5135615ae757981104422a7c /themes/chameleon | |
parent | 82e606f7abf4dd90b8434b51b29f7a5cbbedc1f2 (diff) | |
download | brdo-ba41568963b1358bb830d7804355855c8d8213ce.tar.gz brdo-ba41568963b1358bb830d7804355855c8d8213ce.tar.bz2 |
- #23360: Chameleon: fix taxonomy terms disappearing if there are no node links.
Diffstat (limited to 'themes/chameleon')
-rw-r--r-- | themes/chameleon/chameleon.theme | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index a0f60a6ed..72dadf4df 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -133,8 +133,12 @@ function chameleon_node($node, $main = 0, $page = 0) { $terms = taxonomy_link("taxonomy terms", $node); } + $links = array_merge($submitted, $terms); 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"; |