Browse Source

order photo album list in blog (reverse date) order

pull/494/head
friendica 9 years ago
parent
commit
ebabd25717
  1. 2
      mod/photos.php

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

Loading…
Cancel
Save