From 0d34c9b4222badcb3a83780418505b39f105c60e Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 8 Oct 2009 02:51:49 +0100 Subject: [PATCH] scaled category thumbnails --- ext/tag_list/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index c6dac56b..2d33191a 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -191,7 +191,8 @@ class TagList implements Extension { $image = Image::by_random(array($row['tag'])); if(is_null($image)) continue; // one of the popular tags has no images $thumb = $image->get_thumb_link(); - $html .= "
$h_tag
\n"; + $tsize = get_thumbnail_size($image->width, $image->height); + $html .= "
$h_tag
\n"; if($n%3==2) $html .= ""; $n++; }