From ebabd2571768afe0389a982e184cf2f441cae52c Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 29 Sep 2012 06:08:44 -0700 Subject: [PATCH] order photo album list in blog (reverse date) order --- mod/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/photos.php b/mod/photos.php index c18fd3fea9..9d99edf050 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -27,7 +27,7 @@ function photos_init(&$a) { $sql_extra = permissions_sql($a->data['user']['uid']); - $albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d $sql_extra ", + $albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d $sql_extra order by created desc", intval($a->data['user']['uid']) ); -- 2.39.5