--- taxonomy_theme_taxonomy.inc	2006-10-18 12:01:56.000000000 +0200
+++ taxonomy_theme_taxonomy_patched.inc	2007-12-03 11:36:13.000000000 +0100
@@ -12,6 +12,7 @@ define('TAXOTHEME_NODETYPE', 4);
  * (assign theme to forum related nodes and comments)
  */
 function _taxonomy_theme_select_forum(&$theme_method, &$custom_theme, $default_theme, $uri) {
+  global $forum_vid, $theme_forums, $theme_forum_dep;
   // theme forum dependent pages/nodes
   $forum_vid = variable_get('forum_nav_vocabulary', '');
   $theme_forums = (module_exists('forum') && variable_get('taxonomy_theme_forums_enable', 0));
@@ -135,6 +136,7 @@ function _taxonomy_theme_select_vocabula
  * (all-taxonomy theme selection = term-based + vocab-based)
  */
 function _taxonomy_theme_select_alltaxonomy(&$theme_method, &$custom_theme, $default_theme, $uri) {
+  global $forum_vid, $theme_forums, $theme_forum_dep;
   if ((arg(0) == 'node') && is_numeric(arg(1))) {
     $nid = arg(1);
     $terms = taxonomy_node_get_terms($nid);
