Index: inline.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline.module,v
retrieving revision 1.19.2.7
diff -u -r1.19.2.7 inline.module
--- inline.module	18 Apr 2007 11:22:27 -0000	1.19.2.7
+++ inline.module	27 Apr 2007 10:32:32 -0000
@@ -229,11 +229,18 @@
  */
 function inline_prepare_file_object($file) {
   $file = (object)$file;
-  $tmp = file_directory_temp();
-  if (strpos($file->filepath, $tmp) === 0) {
+  if (strpos($file->filepath, file_directory_temp()) === 0) {
+    // Adjust file path for node previews.
     $file->real_path = $file->filepath;
     $file->filepath  = $file->filename;
     $file->preview   = TRUE;
+    return $file;
+  }
+  else if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE) {
+    // Adjust file path for private files.
+    // file_create_url(): url('system/files/'. $path, NULL, NULL, TRUE);
+    $file->filepath = 'system/files/'. $file->filepath;
+    return $file;
   }
   return $file;
 }

