summaryrefslogtreecommitdiff
path: root/themes/default/views/album.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-31 07:13:34 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-31 07:13:34 +0000
commitc1140b5c0aac2c2c1822a65ddd55151e093e2af4 (patch)
tree1d33c39ed3e7b92c74163f78b4fb1d9743d1ee5b /themes/default/views/album.html.php
parent44c987e89e7fd3babebdc4835c1225b6d7869df1 (diff)
Add Item_Model::url() and use it where appropriate. Cleans up some
grotty looking stuff in themes.
Diffstat (limited to 'themes/default/views/album.html.php')
-rw-r--r--themes/default/views/album.html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
index b5995602..d36ff7c2 100644
--- a/themes/default/views/album.html.php
+++ b/themes/default/views/album.html.php
@@ -13,13 +13,13 @@
<? endif ?>
<li id="g<?= $child->id ?>" class="gItem <?= $album_class ?>">
<?= $theme->thumb_top($child) ?>
- <a href="<?= url::site("{$child->type}s/{$child->id}") ?>">
+ <a href="<?= $child->url() ?>">
<img id="gPhotoID-<?= $child->id ?>" class="gThumbnail"
alt="photo" src="<?= $child->thumb_url() ?>"
width="<?= $child->thumb_width ?>"
height="<?= $child->thumb_height ?>" />
</a>
- <h2><a href="<?= url::site("{$child->type}s/{$child->id}") ?>"><?= $child->title ?></a></h2>
+ <h2><a href="<?= $child->url() ?>"><?= $child->title ?></a></h2>
<?= $theme->thumb_bottom($child) ?>
<ul class="gMetadata">
<?= $theme->thumb_info($child) ?>