Index: inline.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline.module,v retrieving revision 1.19.2.10 diff -u -p -r1.19.2.10 inline.module --- inline.module 28 Sep 2007 16:10:35 -0000 1.19.2.10 +++ inline.module 7 Jan 2008 01:54:28 -0000 @@ -319,10 +319,11 @@ function theme_inline_img($file, $field) } else { $image = theme('image', - $file->filepath, + file_create_url($file->filepath), $title, $title, - array('class' => 'inline') + array('class' => 'inline'), + FALSE ); } @@ -331,7 +332,7 @@ function theme_inline_img($file, $field) 'class' => 'inline-image-link', 'title' => t("View") .': '. $title, ); - $html = l($image, $file->filepath, $attributes, NULL, NULL, FALSE, TRUE); + $html = l($image, file_create_url($file->filepath), $attributes, NULL, NULL, FALSE, TRUE); } else { $html = $image; @@ -525,10 +526,10 @@ function _inline_decide_img_tag($file) { list($maxwidth, $maxheight) = explode(',', variable_get('inline_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)) {