diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-03-11 16:38:53 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-03-11 16:38:53 -0700 |
commit | 53c1ae7dca1c97b4c71f494d7b8b8c2b2a212359 (patch) | |
tree | badf72ff39c96d1de9511d44d3530c1a1ea6f15b /themes/wind | |
parent | cc80fa035a83bb90a9efdda37e92f41b4df1314e (diff) | |
parent | 3c47deb9ef3fd35b1602c822af2b752c6733bed3 (diff) |
Merge pull request #204 from jozefs/issue1838
#1838 - thumb_proportion should have a minimum size.
Diffstat (limited to 'themes/wind')
-rw-r--r-- | themes/wind/views/page.html.php | 2 |
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..0ae41ea7 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, "width")) != 1): ?> <? $new_width = round($thumb_proportion * 213) ?> <? $new_height = round($thumb_proportion * 240) ?> <style type="text/css"> |