Index: inline_upload.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline_upload.module,v retrieving revision 1.3 diff -u -p -r1.3 inline_upload.module --- inline_upload.module 13 Feb 2009 00:47:38 -0000 1.3 +++ inline_upload.module 21 Apr 2009 04:37:04 -0000 @@ -280,10 +280,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)) { @@ -318,16 +318,17 @@ 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) + FALSE ); } @@ -336,7 +337,7 @@ function theme_inline_upload_img($file, 'class' => 'inline-image-link', 'title' => t('View: @file', array('@file' => $title)), ); - $output = l($output, $file->filepath, array('attributes' => $attributes, 'html' => TRUE)); + $output = l($output, file_create_url($file->filepath), array('attributes' => $attributes, 'html' => TRUE)); } return $output;