Index: inline_upload.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/inline/Attic/inline_upload.module,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 inline_upload.module
--- inline_upload.module	5 Jul 2008 00:20:31 -0000	1.1.2.4
+++ inline_upload.module	11 Aug 2008 19:34:54 -0000
@@ -259,10 +259,10 @@ function _inline_upload_decide_img_tag($
       list($maxwidth, $maxheight) = explode(',', variable_get('inline_upload_img_dim', '150,150'));
       
       if ($file->preview) {
-        list($width, $height) = getimagesize($file->real_path);
+        list($width, $height) = @getimagesize($file->real_path);
       }
       else {
-        list($width, $height) = getimagesize($file->filepath);
+        list($width, $height) = @getimagesize($file->filepath);
       }
       
       if (($width && $height) && ($width <= $maxwidth && $height <= $maxheight)) {
@@ -297,16 +297,19 @@ function theme_inline_upload_img($file, 
       $file->filepath,
       $title,
       $title,
-      array('class' => 'inline')
+      array('class' => 'inline'),
+      FALSE
     );
   }
+  
   else {
     $output = theme('image',
-      $file->filepath,
+      file_create_url($file->filepath),
       $title,
       $title,
       array('class' => 'inline'),
-      !isset($file->preview)
+      !isset($file->preview),
+      FALSE
     );
   }
   
@@ -315,7 +318,7 @@ function theme_inline_upload_img($file, 
       'class' => 'inline-image-link',
       'title' => t("View") .': '. $title,
     );
-    $output = l($output, $file->filepath, $attributes, NULL, NULL, FALSE, TRUE);
+    $output = l($output, file_create_url($file->filepath), $attributes, NULL, NULL, FALSE, TRUE);
   }
   
   return $output;
