summaryrefslogtreecommitdiff
path: root/themes/wind
diff options
context:
space:
mode:
authorJozef Selesi <jozef.selesi@saturized.com>2013-03-11 14:42:43 +0100
committerJozef Selesi <jozef.selesi@saturized.com>2013-03-11 15:54:20 +0100
commitbae14a76e52524e2157948bf30cfe3340d1e9a94 (patch)
tree3df7520fe231853854a03c253bdaf3b99fde7c32 /themes/wind
parent4d631a4cad515984fd202fbaa124b6a01f156379 (diff)
Themes can set minimum thumbnail size when calculating proportions.
This prevents broken item rendering when thumbnails are smaller than the theme design allows. Trac-Ticket: #1838
Diffstat (limited to 'themes/wind')
-rw-r--r--themes/wind/views/page.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index 1bb329df..1dbb31c0 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -24,7 +24,7 @@
<link rel="apple-touch-icon-precomposed"
href="<?= url::file(module::get_var("gallery", "apple_touch_icon_url")) ?>" />
<? if ($theme->page_type == "collection"): ?>
- <? if (($thumb_proportion = $theme->thumb_proportion($theme->item())) != 1): ?>
+ <? if (($thumb_proportion = $theme->thumb_proportion($theme->item(), 100)) != 1): ?>
<? $new_width = round($thumb_proportion * 213) ?>
<? $new_height = round($thumb_proportion * 240) ?>
<style type="text/css">