1
0
Fork 0

order photo album list in blog (reverse date) order

This commit is contained in:
friendica 2012-09-29 06:08:44 -07:00
parent c357fddea7
commit ebabd25717

View file

@ -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'])
);