diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-11-03 20:05:53 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-11-03 20:05:53 -0700 |
commit | 4cb49b9152e82d0ab53b1038c7a7d7203c8bf97d (patch) | |
tree | 1fe92ae4c62cb7aee7537dc130a0dafcd6e419dc /themes/wind | |
parent | 4f370b6c237e85d5daa84edcc7d46990ea473b19 (diff) |
Fix a bug introduced in dc21cf36b606048dc24532407d39bc8f5b4211fa where
we're basing the thumb proportions on the album's thumbnail, but this
will be messed up in the case of the root album which may not have a
properly update thumbnail, so its proportions may not be
representative of the album's contents. So instead, base the thumb
proportions on the first child of the album.
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 24d3347e..33d49c35 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($children[0])) != 1): ?> <? $new_width = round($thumb_proportion * 213) ?> <? $new_height = round($thumb_proportion * 240) ?> <style type="text/css"> |