From: Max Shinn Date: Sat, 25 Dec 2010 21:35:20 +0000 (-0600) Subject: Links to photo pages in gallery X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3c4dca90dd2eec92ff600393d09204ba10df230;p=quix0rs-gnu-social.git Links to photo pages in gallery --- 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');