Implement navigation for photo pages.

This commit is contained in:
Aaron committed 2017-11-09 17:00:35 +01:00
1 parent 67a182671f
commit c11c5c2677
5 files changed
+109 -6

No files matched your search

+6 -1
View File
@@ -79,7 +79,12 @@ class ViewPhotoAlbum extends HTMLController
// Load a photo mosaic for the current tag.
list($mosaic, $total_count) = $this->getPhotoMosaic($id_tag, $page);
if (isset($mosaic))
$this->page->adopt(new PhotosIndex($mosaic, Registry::get('user')->isAdmin()));
{
$index = new PhotosIndex($mosaic, Registry::get('user')->isAdmin());
$this->page->adopt($index);
if ($id_tag > 1)
$index->setUrlSuffix('?in=' . $id_tag);
}
// Make a page index as needed, while we're at it.
if ($total_count > self::PER_PAGE)