summaryrefslogtreecommitdiff
path: root/themes/default/views/photo.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/photo.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/photo.html.php')
-rw-r--r--themes/default/views/photo.html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index 88047381..cf7c83b8 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -14,12 +14,12 @@
</div>
<? if ($position > 1): ?>
-<a href="<?= url::site("{$previous_item->type}s/$previous_item->id") ?>"><?= _("previous") ?></a>
+<a href="<?= $previous_item->url() ?>"><?= _("previous") ?></a>
<? endif ?>
<?= sprintf(_("Viewing photo %d of %d"), $position, $sibling_count) ?>
<? if ($position < $sibling_count): ?>
-<a href="<?= url::site("{$next_item->type}s/$next_item->id") ?>"><?= _("next") ?></a>
+<a href="<?= $next_item->url() ?>"><?= _("next") ?></a>
<? endif ?>