Index: taxonomy_image.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_image/taxonomy_image.module,v
retrieving revision 1.12.4.13.2.44
diff -u -p -r1.12.4.13.2.44 taxonomy_image.module
--- taxonomy_image.module	16 Apr 2009 13:33:35 -0000	1.12.4.13.2.44
+++ taxonomy_image.module	7 Apr 2010 10:49:04 -0000
@@ -240,7 +240,7 @@ function taxonomy_image_get_object($tid,
 
     // Not cached, so go build it.
     if ($image[$tid] = db_fetch_object(db_query('SELECT i.path, d.name, d.description FROM {term_image} i INNER JOIN {term_data} d USING(tid) WHERE i.tid=%d', $tid))) {
-      $image[$tid]->url = file_create_url($mypath . $image[$tid]->path);
+      $image[$tid]->url = '.'. str_replace($GLOBALS['base_url'], '', file_create_url($mypath . $image[$tid]->path));
     }
     elseif ($recursive) {
       // Walk up the taxonomy hierarchy and look for an image.
@@ -257,13 +257,11 @@ function taxonomy_image_get_object($tid,
     $term = taxonomy_get_term($tid);
     $image[$tid]->name = $term->name;
     $image[$tid]->description = $term->description;
-//    $image[$tid]->url = file_create_url($mypath . $image[$tid]->path);
-    $image[$tid]->url = url($fullpath . $image[$tid]->path, array('absolute' => TRUE));
+    $image[$tid]->url = url($fullpath . $image[$tid]->path);
   }
   // Get more properties if we had an image.
   if (!empty($image[$tid]->path)) {
     $image[$tid]->tid = $tid;
-//    $img = getimagesize($image[$tid]->path);
     $img = getimagesize($image[$tid]->url);
     // Make sure it worked.
     if (!$img) {
