#329581 - fix for filefield descriptions appearing as just "a" when displayed in
authorStella Power
Thu, 11 Dec 2008 11:11:04 +0000 (11:11 +0000)
committerStella Power
Thu, 11 Dec 2008 11:11:04 +0000 (11:11 +0000)
a view.

lightbox2.formatter.inc

index d289dbb..65d6ade 100644 (file)
@@ -217,6 +217,10 @@ function theme_lightbox2_file_formatter_lightbox2_iframe($file, $field, $file_fo
   $url = file_create_url($path);
   $icon = theme('filefield_icon', $file);
   $description = $file->data['description'];
+  if (is_string($description)) {
+    $data = unserialize($file->data);
+    $description = $data['description'];
+  }
 
   $target = variable_get('lightbox2_node_link_target', FALSE);
   if (!empty($target)) {