diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-12-31 07:13:34 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-31 07:13:34 +0000 |
| commit | c1140b5c0aac2c2c1822a65ddd55151e093e2af4 (patch) | |
| tree | 1d33c39ed3e7b92c74163f78b4fb1d9743d1ee5b /themes/default/views/photo.html.php | |
| parent | 44c987e89e7fd3babebdc4835c1225b6d7869df1 (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.php | 4 |
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 ?> |
