summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2007-12-11 13:52:20 (GMT)
committer Stella Power2007-12-11 13:52:20 (GMT)
commitef60b2a61ffe421419a776ff4059c4170a81e2cb (patch)
tree6ed258278679e6c01dfd867c898c6d4f94460974
parente9564d2b4be2f2d786125b02345932ee526d5874 (diff)
#198760 second fix
-rw-r--r--lightbox2.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 6752bce..6551893 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -384,11 +384,12 @@ function lightbox2_field_formatter($field, $item, $formatter) {
lightbox2_add_files();
}
+ $item['filepath'] = $filepath;
if (strpos($formatter, 'lightbox2][') !== false) {
list($null, $namespace) = explode('][', $formatter, 2);
$rules = _imagecache_get_presets();
if (in_array($namespace, (array) $rules)) {
- return theme('imagefield_image_imagecache_thickbox', $namespace, $field, $filepath, $item['alt'], $item['title']);
+ return theme('imagefield_image_imagecache_lightbox2', $namespace, $field, $item);
}
}
}