aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/image.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/image.php')
-rw-r--r--views/default/object/image.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 72b245d17..02444eaad 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -66,22 +66,22 @@
if (!$vars['full']) {
?>
- <div class="tidypics_album_images">
<?php
// plugins can override the image link to add lightbox code here
$image_html = false;
- $image_html = trigger_plugin_hook('tp_thumbnail_link', 'image', $image, $image_html);
+ $image_html = trigger_plugin_hook('tp_thumbnail_link', 'image', array('image' => $image), $image_html);
if ($image_html) {
echo $image_html;
} else {
// default link to image if no one overrides
?>
- <a href="<?php echo $image->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $image_guid;?>&size=small" alt="thumbnail"/></a>
+ <div class="tidypics_album_images">
+ <a href="<?php echo $image->getURL();?>"><img src="<?php echo $vars['url'];?>pg/photos/thumbnail/<?php echo $image_guid;?>/small/" alt="<?php echo $image->title; ?>"/></a>
+ </div>
<?php
}
?>
- </div>
<?php
} else {