]> git.mxchange.org Git - friendica.git/commitdiff
order photo album list in blog (reverse date) order
authorfriendica <info@friendica.com>
Sat, 29 Sep 2012 13:08:44 +0000 (06:08 -0700)
committerfriendica <info@friendica.com>
Sat, 29 Sep 2012 13:08:44 +0000 (06:08 -0700)
mod/photos.php

index c18fd3fea9702d8779f01233bb596e97d28d4e1c..9d99edf0504da21d003fe2a58c17220273e0a40b 100644 (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'])
                );