diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-24 07:10:15 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-24 07:10:15 +0000 |
| commit | 254b4a0eddfa75edeb89f0f1337757758a242379 (patch) | |
| tree | 8159462750c066b61c4fc9d9cc6517f33fb732db /FisheyeGallery.php | |
| parent | 852546c26bf084e29524b36cc2fbd1c3018bc05c (diff) | |
| download | fisheye-254b4a0eddfa75edeb89f0f1337757758a242379.tar.gz fisheye-254b4a0eddfa75edeb89f0f1337757758a242379.tar.bz2 fisheye-254b4a0eddfa75edeb89f0f1337757758a242379.zip | |
use liberty thumbnail fetcher to get next and previous thumbs.
Diffstat (limited to 'FisheyeGallery.php')
| -rw-r--r-- | FisheyeGallery.php | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/FisheyeGallery.php b/FisheyeGallery.php index 2850e2c..031c304 100644 --- a/FisheyeGallery.php +++ b/FisheyeGallery.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeGallery.php,v 1.60 2007/06/22 11:13:41 lsces Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeGallery.php,v 1.61 2007/06/24 07:10:15 squareing Exp $ * @package fisheye */ @@ -149,25 +149,11 @@ class FisheyeGallery extends FisheyeBase { if( $rows[$i]['image_id'] == $pCurrentImageId ) { if( $i > 0 ) { $this->mInfo['previous_image_id'] = $rows[$i-1]['image_id']; - - $trailingName = dirname( $rows[$i-1]['storage_path'] )."/avatar.jpg"; - if( file_exists( BIT_ROOT_PATH.$trailingName ) ) { - $this->mInfo['previous_image_avatar'] = BIT_ROOT_URL.$trailingName; - } else { - $mime_type = BitSystem::lookupMimeType( preg_match( "/\..*?$/", $rows[$i-1]['storage_path'] ) ); - $this->mInfo['previous_image_avatar'] = LibertySystem::getMimeThumbnailURL( $mime_type ); - } + $this->mInfo['previous_image_avatar'] = liberty_fetch_thumbnail_url( $rows[$i-1]['storage_path'], 'avatar' ); } if( $i + 1 < count( $rows ) ) { $this->mInfo['next_image_id'] = $rows[$i+1]['image_id']; - - $trailingName = dirname( $rows[$i+1]['storage_path'] )."/avatar.jpg"; - if( file_exists( BIT_ROOT_PATH.$trailingName ) ) { - $this->mInfo['next_image_avatar'] = BIT_ROOT_URL.$trailingName; - } else { - $mime_type = BitSystem::lookupMimeType( preg_match( "/\..*?$/", $rows[$i+1]['storage_path'] ) ); - $this->mInfo['next_image_avatar'] = LibertySystem::getMimeThumbnailURL( $mime_type ); - } + $this->mInfo['next_image_avatar'] = liberty_fetch_thumbnail_url( $rows[$i+1]['storage_path'], 'avatar' ); } } } |
