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:16:46 -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,21 @@ function theme_inline_upload_img($file, 
       $file->filepath,
       $title,
       $title,
-      array('class' => 'inline')
+      array('class' => 'inline'),
+      FALSE
     );
+    drupal_set_message("filepath: ". $file->filepath);
+    //drupal_set_message("created for imagecache with ". file_create_url($file->filepath));
   }
+  
   else {
     $output = theme('image',
-      $file->filepath,
+      file_create_url($file->filepath),
       $title,
       $title,
       array('class' => 'inline'),
-      !isset($file->preview)
+      !isset($file->preview),
+      FALSE
     );
   }
   
