--- simplegallery.module	2009-04-23 22:59:57.000000000 +0200
+++ simplegalleryNEW.module	2009-04-23 22:47:45.000000000 +0200
@@ -168,7 +168,7 @@ function simplegallery_all() {
           //$rows[0]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE));
           
           for($i=0;$i<count($node->{$imagefield});$i++) {
-            $rows[0]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[$i]['filepath']),$node->{$imagefield}[$i]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[$i]['data']['title']), 'html'=>TRUE));
+            $rows[0]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[$i]['filepath']),file_create_url($node->{$imagefield}[$i]['filepath']), array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[$i]['data']['title']), 'html'=>TRUE));
           }
       
       }
@@ -213,11 +213,11 @@ function simplegallery_sub($tid) {
       $node = node_load($nid);
       if ($i % $numimages == 0)
       {
-      $rows[count($rows)]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE));
+      $rows[count($rows)]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),file_create_url($node->{$imagefield}[0]['filepath']), array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE));
       }
       else
       {
-      $rows[count($rows)-1]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE));
+      $rows[count($rows)-1]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),file_create_url($node->{$imagefield}[0]['filepath']), array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE));
       }
       $i++;
       }
@@ -250,4 +250,4 @@ function simplegallery_select_nodes($tid
   }
 
   return $result;
-}
\ No newline at end of file
+}
