summaryrefslogtreecommitdiff
path: root/fisheye_rss.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-06-15 21:19:07 +0000
committerLester Caine <lester@lsces.co.uk>2007-06-15 21:19:07 +0000
commit1d888f4c6184d82215dcdb18935672455444d8de (patch)
treee1b22a89e6f20a6d9e4fbad0fa51a09ea2cea66a /fisheye_rss.php
parent2c1b2458d306cdecd93a51d4ce63f092e38d0b47 (diff)
downloadfisheye-1d888f4c6184d82215dcdb18935672455444d8de.tar.gz
fisheye-1d888f4c6184d82215dcdb18935672455444d8de.tar.bz2
fisheye-1d888f4c6184d82215dcdb18935672455444d8de.zip
Allow attachments to use .png thumbnails
Diffstat (limited to 'fisheye_rss.php')
-rw-r--r--fisheye_rss.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/fisheye_rss.php b/fisheye_rss.php
index adb5209..5890e99 100644
--- a/fisheye_rss.php
+++ b/fisheye_rss.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/fisheye_rss.php,v 1.5 2007/01/21 15:21:20 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/fisheye_rss.php,v 1.6 2007/06/15 21:19:07 lsces Exp $
* @package fisheye
* @subpackage functions
*/
@@ -48,12 +48,14 @@ if( !$gBitUser->hasPermission( 'p_fisheye_view' ) ) {
// set the rss link
$rss->link = 'http://'.$_SERVER['HTTP_HOST'].FISHEYE_PKG_URL;
+ global $gBitSystem;
+ if( $gBitSystem->isFeatureActive( 'liberty_png_thumbnails' )) { $ext = '.png'; } else { $ext = '.jpg'; }
// get all the data ready for the feed creator
foreach( $feeds as $feed ) {
$item = new FeedItem();
$item->title = $feed['title'];
$item->link = $feed['display_url'];
- $item->description = '<a href="'.$feed['display_url'].'"><img src="'.str_replace( '/avatar.jpg', '/medium.jpg', $feed['thumbnail_url'] ).'" /></a>';
+ $item->description = '<a href="'.$feed['display_url'].'"><img src="'.str_replace( '/avatar'.$ext, '/medium'.$ext, $feed['thumbnail_url'] ).'" /></a>';
$item->description .= '<p>'.$feed['data'].'</p>';
$item->date = ( int )$feed['last_modified'];