Index: tagadelic.module =================================================================== RCS file: /cvs/drupal/contributions/modules/tagadelic/tagadelic.module,v retrieving revision 1.36.2.7 diff -u -p -r1.36.2.7 tagadelic.module --- tagadelic.module 7 Dec 2007 12:24:01 -0000 1.36.2.7 +++ tagadelic.module 29 Dec 2007 16:59:29 -0000 @@ -164,10 +164,13 @@ function tagadelic_page_list() { * @param $node. A node object. */ function tagadelic_node_get_terms($node) { + static $vocs; if ($terms = taxonomy_node_get_terms($node->nid, 'tid')) { - $vocs = taxonomy_get_vocabularies($node->type); + if (!isset($vocs[$node->type])) { + $vocs[$node->type] = taxonomy_get_vocabularies($node->type); + } foreach ($terms as $tid => $term) { - if ($vocs[$term->vid]->tags) { + if ($vocs[$node->type][$term->vid]->tags) { $tags[$term->vid][$tid] = $term; } } @@ -175,7 +178,6 @@ function tagadelic_node_get_terms($node) } } - /** * API function that returns the tags of a node in fancy titled lists * @param $node. A node object.