summaryrefslogtreecommitdiff
path: root/Pigeonholes.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-10-21 08:37:16 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-10-21 08:37:16 +0000
commite547c566c2d507b7d712be9ba4d8a3515658c1de (patch)
tree75c9da4cad89f2c31f5bb58b85b857304faa5c2f /Pigeonholes.php
parentd012f967c28e9fd070e226695510bf8652f67855 (diff)
downloadpigeonholes-e547c566c2d507b7d712be9ba4d8a3515658c1de.tar.gz
pigeonholes-e547c566c2d507b7d712be9ba4d8a3515658c1de.tar.bz2
pigeonholes-e547c566c2d507b7d712be9ba4d8a3515658c1de.zip
simplify thumbnail fetch call
Diffstat (limited to 'Pigeonholes.php')
-rw-r--r--Pigeonholes.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php
index 59b62ff..bffc23e 100644
--- a/Pigeonholes.php
+++ b/Pigeonholes.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.115 2007/10/21 08:34:35 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.116 2007/10/21 08:37:16 squareing Exp $
*
* +----------------------------------------------------------------------+
* | Copyright ( c ) 2004, bitweaver.org
@@ -17,7 +17,7 @@
* Pigeonholes class
*
* @author xing <xing@synapse.plus.com>
- * @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;
}
}