projects
/
project/lightbox2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
64f53a4
)
#329581 - fix for filefield descriptions appearing as just "a" when displayed in
author
Stella Power
Thu, 11 Dec 2008 11:11:04 +0000 (11:11 +0000)
committer
Stella Power
Thu, 11 Dec 2008 11:11:04 +0000 (11:11 +0000)
a view.
lightbox2.formatter.inc
patch
|
blob
|
blame
|
history
diff --git
a/lightbox2.formatter.inc
b/lightbox2.formatter.inc
index
d289dbb
..
65d6ade
100644
(file)
--- a/
lightbox2.formatter.inc
+++ b/
lightbox2.formatter.inc
@@
-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)) {