diff options
author | Friendika <info@friendika.com> | 2011-04-11 03:22:09 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-11 03:22:09 -0700 |
commit | c8f32536ff77193689efe69702f91122f97c1f36 (patch) | |
tree | 9572912bab0a8f7fb8783873f999ea7e880774e9 /mod/photos.php | |
parent | 9133a2384aecd61f8ee59b380d82dc2d58660703 (diff) | |
download | volse-hubzilla-c8f32536ff77193689efe69702f91122f97c1f36.tar.gz volse-hubzilla-c8f32536ff77193689efe69702f91122f97c1f36.tar.bz2 volse-hubzilla-c8f32536ff77193689efe69702f91122f97c1f36.zip |
pull in new 'writable' dfrn flag
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/mod/photos.php b/mod/photos.php index 2e0ccd248..757b4685d 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1259,17 +1259,14 @@ function photos_content(&$a) { if(count($r)) { foreach($r as $rr) { $o .= replace_macros($tpl,array( - '$id' => $rr['id'], - '$photolink' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] - . '/image/' . $rr['resource-id'], + '$id' => $rr['id'], + '$photolink' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $rr['resource-id'], '$phototitle' => t('View Photo'), - '$imgsrc' => $a->get_baseurl() . '/photo/' - . $rr['resource-id'] . '-' . ((($rr['scale']) == 6) ? 4 : $rr['scale']) . '.jpg', - '$albumlink' => $a->get_baseurl() . '/photos/' - . $a->data['user']['nickname'] . '/album/' . bin2hex($rr['album']), - '$albumname' => $rr['album'], - '$albumalt' => t('View Album'), - '$imgalt' => $rr['filename'] + '$imgsrc' => $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . ((($rr['scale']) == 6) ? 4 : $rr['scale']) . '.jpg', + '$albumlink' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($rr['album']), + '$albumname' => $rr['album'], + '$albumalt' => t('View Album'), + '$imgalt' => $rr['filename'] )); } |