From 11c7c57873331d9ae3eb03e7ab07acf6b9967af7 Mon Sep 17 00:00:00 2001 From: szalwia Date: Thu, 4 Jun 2015 17:18:27 +0100 Subject: [PATCH] Fix thumbnail scaling in recent theme Use decoded JSON values to set thumbnail sizes in the recent theme --- templates/themes/recent/theme.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index f44e2529..55660d3d 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -79,6 +79,8 @@ } else { $post['src'] = $config['uri_thumb'] . $files[0]->thumb; + $post['thumbwidth'] = $files[0]->thumbwidth; + $post['thumbheight'] = $files[0]->thumbheight; } }