Order albums chronologically ascending.

This commit is contained in:
Aaron van Geffen 2016-09-03 21:37:50 +02:00
parent 0341f73d09
commit 6f94df04f0

View File

@ -90,7 +90,7 @@ class ViewPhotoAlbum extends HTMLController
list($this->iterator, $total_count) = AssetIterator::getByOptions([ list($this->iterator, $total_count) = AssetIterator::getByOptions([
'id_tag' => $id_tag, 'id_tag' => $id_tag,
'order' => 'date_captured', 'order' => 'date_captured',
'direction' => 'desc', 'direction' => $id_tag > 0 ? 'asc' : 'desc',
'limit' => self::PER_PAGE, 'limit' => self::PER_PAGE,
'page' => $page, 'page' => $page,
], true); ], true);