From dc15e8640de0fcd77bf91b97aee6f890b34ba6cb Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 16 Feb 2011 12:49:16 +0100 Subject: duepuntozero: show desc on image in albums --- mod/photos.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/photos.php') 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'] )); } -- cgit v1.2.3