aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-16 12:49:16 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-16 12:49:16 +0100
commitdc15e8640de0fcd77bf91b97aee6f890b34ba6cb (patch)
tree3bd77f66436534e71a1d7e6d4808520a8c7785cf /mod
parentc8116932c286f04bbaf121f75053dfde0fb7d571 (diff)
downloadvolse-hubzilla-dc15e8640de0fcd77bf91b97aee6f890b34ba6cb.tar.gz
volse-hubzilla-dc15e8640de0fcd77bf91b97aee6f890b34ba6cb.tar.bz2
volse-hubzilla-dc15e8640de0fcd77bf91b97aee6f890b34ba6cb.zip
duepuntozero: show desc on image in albums
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index a44eb5a5f..ebfe714a7 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -831,7 +831,7 @@ function photos_content(&$a) {
$a->set_pager_itemspage(20);
}
- $r = q("SELECT `resource-id`, `id`, `filename`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` = '%s'
+ $r = q("SELECT `resource-id`, `id`, `filename`, max(`scale`) AS `scale`, `desc` FROM `photo` WHERE `uid` = %d AND `album` = '%s'
$sql_extra GROUP BY `resource-id` ORDER BY `created` DESC LIMIT %d , %d",
intval($owner_uid),
dbesc($album),
@@ -873,7 +873,8 @@ function photos_content(&$a) {
'$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'] . '.jpg',
- '$imgalt' => $rr['filename']
+ '$imgalt' => $rr['filename'],
+ '$desc'=> $rr['desc']
));
}