Index: contrib/image_gallery/image_gallery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_gallery/image_gallery.module,v
retrieving revision 1.30
diff -u -p -r1.30 image_gallery.module
--- contrib/image_gallery/image_gallery.module	17 Jan 2009 00:20:44 -0000	1.30
+++ contrib/image_gallery/image_gallery.module	17 Jan 2009 22:24:36 -0000
@@ -146,10 +146,11 @@ function image_gallery_nodeapi(&$node, $
  * Image gallery callback, displays an image gallery
  */
 function image_gallery_page($type = NULL, $tid = 0) {
-  $galleries = taxonomy_get_tree(_image_gallery_get_vid(), $tid, -1, 1);
+  $vid = _image_gallery_get_vid();
+  $galleries = taxonomy_get_tree($vid, $tid, -1, 1);
   for ($i=0; $i < count($galleries); $i++) {
     $galleries[$i]->count = taxonomy_term_count_nodes($galleries[$i]->tid, 'image');
-    $tree = taxonomy_get_tree(_image_gallery_get_vid(), $galleries[$i]->tid, -1);
+    $tree = taxonomy_get_tree($vid, $galleries[$i]->tid, -1);
     $descendant_tids = array_merge(array($galleries[$i]->tid), array_map('_taxonomy_get_tid_from_term', $tree));
     // The values of $descendant_tids should be safe for raw inclusion in the
     // SQL since they're all loaded from integer fields in the database.
