From 6f94df04f0f9e69c96b2254de2a6aa8a4fd32274 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 3 Sep 2016 21:37:50 +0200 Subject: [PATCH] Order albums chronologically ascending. --- controllers/ViewPhotoAlbum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/ViewPhotoAlbum.php b/controllers/ViewPhotoAlbum.php index 5f8c834..036eab5 100644 --- a/controllers/ViewPhotoAlbum.php +++ b/controllers/ViewPhotoAlbum.php @@ -90,7 +90,7 @@ class ViewPhotoAlbum extends HTMLController list($this->iterator, $total_count) = AssetIterator::getByOptions([ 'id_tag' => $id_tag, 'order' => 'date_captured', - 'direction' => 'desc', + 'direction' => $id_tag > 0 ? 'asc' : 'desc', 'limit' => self::PER_PAGE, 'page' => $page, ], true);