From a3c4dca90dd2eec92ff600393d09204ba10df230 Mon Sep 17 00:00:00 2001 From: Max Shinn Date: Sat, 25 Dec 2010 15:35:20 -0600 Subject: [PATCH] Links to photo pages in gallery --- plugins/GNUsocialPhotos/actions/photos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php index 3092389330..37ec8ce32f 100644 --- a/plugins/GNUsocialPhotos/actions/photos.php +++ b/plugins/GNUsocialPhotos/actions/photos.php @@ -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');