summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-11-03 21:11:15 -0700
committerBharat Mediratta <bharat@menalto.com>2011-11-03 21:11:15 -0700
commit1189ced2ce688bc41f3866e59f86eb4799757890 (patch)
tree3642a314f2633113678cbcf984b34885269dcccf
parent7b65a292ce991c676899ac1e4920b8ce1534c3bd (diff)
Revert "Fix a bug introduced in dc21cf36b606048dc24532407d39bc8f5b4211fa where"
It doesn't work for search because there are no children. And this just feels clunky to me - we should arrange for the root album to have the right dimensions of thumbnail instead. This reverts commit 4cb49b9152e82d0ab53b1038c7a7d7203c8bf97d.
-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 33d49c35..24d3347e 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($children[0])) != 1): ?>
+ <? if (($thumb_proportion = $theme->thumb_proportion($theme->item())) != 1): ?>
<? $new_width = round($thumb_proportion * 213) ?>
<? $new_height = round($thumb_proportion * 240) ?>
<style type="text/css">