Links to photo pages in gallery

This commit is contained in:
Max Shinn 2010-12-25 15:35:20 -06:00
parent 4af6e0f44c
commit a3c4dca90d
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class PhotosAction extends Action
$this->elementStart('ul', array('class' => 'photothumbs'));
foreach ($photos as $photo) {
$this->elementStart('li');
$this->elementStart('a', array('href' => $photo->uri));
$photolink = '/' . $this->user->nickname . '/photo/' . $photo->notice_id;
$this->elementStart('a', array('href' => $photolink));
$this->element('img', array('src' => $photo->thumb_uri));
$this->elementEnd('a');
$this->elementEnd('li');