From fe1cce6c8cbf2ee781619ff21b571518aa1a28e9 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 9 May 2009 22:22:51 +0000 Subject: started adding images to activity river --- thumbnail.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'thumbnail.php') diff --git a/thumbnail.php b/thumbnail.php index b4c745ae2..fe8ca8bab 100644 --- a/thumbnail.php +++ b/thumbnail.php @@ -13,15 +13,17 @@ // Get file thumbnail size $size = get_input('size','small'); - if ($size != 'small') { + if ($size != 'small' && $size != 'thumb') { $size = 'large'; } // Get file entity if ($file = get_entity($file_guid)) { - if ($file->getSubtype() == "image") { + if ($file->getSubtype() == "image") { // Get file thumbnail - if ($size == "small") { + if ($size === "thumb") { + $thumbfile = $file->thumbnail; + } else if ($size === "small") { $thumbfile = $file->smallthumb; } else { $thumbfile = $file->largethumb; @@ -48,4 +50,4 @@ header("Content-type: image"); echo $contents; exit; -?> \ No newline at end of file +?> -- cgit v1.2.3