mirror of
https://github.com/friendica/friendica
synced 2025-01-18 16:24:27 +00:00
order photo album list in blog (reverse date) order
This commit is contained in:
parent
c357fddea7
commit
ebabd25717
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function photos_init(&$a) {
|
||||||
|
|
||||||
$sql_extra = permissions_sql($a->data['user']['uid']);
|
$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'])
|
intval($a->data['user']['uid'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue