commit 2d44a6795f6ce4b7fedd9bc697fec717c2622684
Author: Raphaël Droz <raphael.droz+floss@gmail.com>
Date:   Mon Nov 7 09:14:08 2011 +0100

    fixes for #1328260

diff --git a/inline.theme.inc b/inline.theme.inc
index 304bcf4..dc2a7a7 100644
--- a/inline.theme.inc
+++ b/inline.theme.inc
@@ -12,9 +12,9 @@ function theme_inline_as_link($variables) {
   $file = $variables['file'];
 
   // Prepare link text with title or filename.
-  $linktext = ($file->title ? $file->title : $file->filename);
+  $linktext = isset($file->title) ? $file->title : $file->filename;
 
-  return l($linktext, file_create_url($file->filepath), array('attributes' => array('title' => t('Download: @name (@size)', array('@name' => $file->filename, '@size' => format_size($file->filesize))))));
+  return l($linktext, file_create_url($file->uri), array('attributes' => array('title' => t('Download: @name (@size)', array('@name' => $file->filename, '@size' => format_size($file->filesize))))));
 }
 
 /**
@@ -39,7 +39,7 @@ function theme_inline_img($variables) {
       'class' => 'inline-image-link',
       'title' => t("View") . ': ' . $title,
     );
-    $html = l($image, $file->uri, array('attributes' => $attributes, 'html' => TRUE));
+    $html = l($image, file_create_url($file->uri), array('attributes' => $attributes, 'html' => TRUE));
   }
   else {
     $html = $image;
