--- lightbox2.module	2009-01-08 13:34:25.000000000 +0100
+++ lightbox2.module.new	2010-07-28 18:33:53.000000000 +0200
@@ -634,10 +634,15 @@ function lightbox2_add_files() {
   $enable_login = $user->uid == 0 && variable_get('lightbox2_enable_login', FALSE);
   $enable_contact = module_exists('contact') && variable_get('lightbox2_enable_contact', FALSE) && user_access('access site-wide contact form');
 
+  $file_path = base_path() .'(\w\w/)'. file_directory_path();
+  if ( variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE ) {
+    $file_path = base_path() .'(\w\w/)system/files';
+  }
+
   // Load the javascript settings.
   $js_settings = array(
     'rtl' => $language->direction,
-    'file_path' => base_path() .'(\w\w/)'. file_directory_path(),
+    'file_path' => $file_path,
     'default_image' => base_path() . $path .'/images/brokenimage.jpg',
     'border_size' => variable_get('lightbox2_border_size', 10),
     'font_color' => variable_get('lightbox2_font_color', '000'),
