diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-07-04 15:03:28 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-07-04 15:03:28 +0000 |
| commit | 9f4ae072f687835e7c657935482458372ba6fe6c (patch) | |
| tree | 95e44e704f22dc8ba39942c223a0cffad7f10812 /plugins/storage.bitfile.php | |
| parent | 20b35ec28f1f12faa127073eafff5863b9738116 (diff) | |
| download | liberty-9f4ae072f687835e7c657935482458372ba6fe6c.tar.gz liberty-9f4ae072f687835e7c657935482458372ba6fe6c.tar.bz2 liberty-9f4ae072f687835e7c657935482458372ba6fe6c.zip | |
use small.jpg as required thumbnail size to probe for thumbnail existence
Diffstat (limited to 'plugins/storage.bitfile.php')
| -rw-r--r-- | plugins/storage.bitfile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/storage.bitfile.php b/plugins/storage.bitfile.php index 4f00d82..25b56ce 100644 --- a/plugins/storage.bitfile.php +++ b/plugins/storage.bitfile.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.16 $ + * @version $Revision: 1.17 $ * @package liberty * @subpackage plugins_storage */ @@ -68,7 +68,7 @@ function bit_files_load( $pRow ) { WHERE a.`foreign_id` = ? AND a.`content_id` = ?"; if( $ret = $gBitSystem->mDb->getRow($query, array( $pRow['foreign_id'], $pRow['content_id'] )) ) { $canThumbFunc = liberty_get_function( 'can_thumbnail' ); - if ( file_exists( BIT_ROOT_PATH.dirname( $ret['storage_path'] ).'/medium.jpg' ) ) { + if ( file_exists( BIT_ROOT_PATH.dirname( $ret['storage_path'] ).'/small.jpg' ) ) { $ret['thumbnail_url']['avatar'] = BIT_ROOT_URL.dirname( $ret['storage_path'] ).'/avatar.jpg'; $ret['thumbnail_url']['small'] = BIT_ROOT_URL.dirname( $ret['storage_path'] ).'/small.jpg'; $ret['thumbnail_url']['medium'] = BIT_ROOT_URL.dirname( $ret['storage_path'] ).'/medium.jpg'; |
