From e547c566c2d507b7d712be9ba4d8a3515658c1de Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 21 Oct 2007 08:37:16 +0000 Subject: simplify thumbnail fetch call --- Pigeonholes.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 59b62ff..bffc23e 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.115 $ + * @version $Revision: 1.116 $ * @package pigeonholes */ @@ -171,12 +171,10 @@ class Pigeonholes extends LibertyAttachable { $type['content_object'] = new $type['handler_class'](); } if( $type['content_object']->isViewable( $aux['content_id'] )) { - $aux['display_url'] = $type['content_object']->getDisplayUrl( NULL, $aux ); - $aux['display_link'] = $type['content_object']->getDisplayLink( $aux['title'], $aux ); - $aux['title'] = $type['content_object']->getTitle( $aux ); - if( $gBitSystem->isFeatureActive( 'pigeonholes_member_thumb' ) && !empty( $aux['storage_path'] )) { - $aux['thumbnail_url'] = liberty_fetch_thumbnails( $aux['storage_path'] ); - } + $aux['display_url'] = $type['content_object']->getDisplayUrl( NULL, $aux ); + $aux['display_link'] = $type['content_object']->getDisplayLink( $aux['title'], $aux ); + $aux['title'] = $type['content_object']->getTitle( $aux ); + $aux['thumbnail_url'] = liberty_fetch_thumbnails( $aux['storage_path'], NULL, NULL, FALSE ); $ret[] = $aux; } } -- cgit v1.3