summaryrefslogtreecommitdiff
path: root/core/views/admin_block_photo_stream.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-23 01:27:50 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-23 01:27:50 +0000
commitf476e2169ee84922dfe48d5a5065e1eabe40713f (patch)
treecd6f5446320366cb634c72b9c95c1cdb1d6461d0 /core/views/admin_block_photo_stream.html.php
parent0c89fdcfc88a88459c47fdf9df94f764d4ab7702 (diff)
Change photo::img_dimensions to take the dimensions, not a photo. This lets us use it in the watermark module too
Diffstat (limited to 'core/views/admin_block_photo_stream.html.php')
-rw-r--r--core/views/admin_block_photo_stream.html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/admin_block_photo_stream.html.php b/core/views/admin_block_photo_stream.html.php
index af8d8545..6f961b29 100644
--- a/core/views/admin_block_photo_stream.html.php
+++ b/core/views/admin_block_photo_stream.html.php
@@ -4,6 +4,7 @@
</p>
<? foreach ($photos as $photo): ?>
<a href="<?= url::site("photos/$photo->id") ?>">
- <img <?= photo::img_dimensions($photo, 72) ?> src="<?= $photo->thumb_url() ?>" alt="" />
+ <img <?= photo::img_dimensions($photo->width, $photo->height, 72) ?>
+ src="<?= $photo->thumb_url() ?>" alt="" />
</a>
<? endforeach ?>