? inline.patch
Index: inline.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline.module,v
retrieving revision 1.24
diff -u -p -r1.24 inline.module
--- inline.module	27 Mar 2007 03:48:27 -0000	1.24
+++ inline.module	7 Apr 2007 13:52:40 -0000
@@ -249,7 +249,7 @@ function theme_inline_img($file, $field)
   $title = (!empty($file->title) ? $file->title : $file->filename);
   $inline_preset = $field == 'teaser' ? 'inline_teaser_preset' : 'inline_full_preset';
   
-  if (module_exists('imagecache') && variable_get($inline_preset, '')) {
+  if (module_exists('imagecache') && variable_get($inline_preset, '') != '') {
     $image = theme('imagecache',
       variable_get($inline_preset, ''),
       $file->filepath,
@@ -260,17 +260,19 @@ function theme_inline_img($file, $field)
   }
   else {
     $image = theme('image',
-      file_create_url($file->filepath),
+      $file->filepath,
       $title,
       $title,
       array('class' => 'inline')
     );
   }
   
-  if (variable_get('inline_link_img', '1') == '1') {
-    $attributes          = array('class' => 'inline-image-link');
-    $attributes['title'] = t("View") .': '. $title;
-    $html                = l($image, file_create_url($file->filepath), $attributes, NULL, NULL, FALSE, TRUE);
+  if (variable_get('inline_link_img', '1')) {
+    $attributes = array(
+      'class' => 'inline-image-link',
+      'title' => t("View") .': '. $title,
+    );
+    $html = l($image, $file->filepath, $attributes, NULL, NULL, FALSE, TRUE);
   }
   else {
     $html = $image;
