From f66a400100ec917b71f5c6b263e58e3a92ad652f Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 2 Dec 2023 00:24:47 +0100 Subject: [PATCH] PhotosIndex: removing unnecessary limit/constant --- templates/PhotosIndex.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/PhotosIndex.php b/templates/PhotosIndex.php index b01a9230..adef18d0 100644 --- a/templates/PhotosIndex.php +++ b/templates/PhotosIndex.php @@ -12,7 +12,6 @@ class PhotosIndex extends Template protected $show_edit_buttons; protected $show_headers; protected $show_labels; - protected $row_limit = 1000; protected $previous_header = ''; protected $url_suffix; @@ -47,11 +46,12 @@ class PhotosIndex extends Template echo '
'; - for ($i = $this->row_limit; $i > 0 && $row = $this->mosaic->getRow(); $i--) + $i = 0; + while ($row = $this->mosaic->getRow()) { - list($photos, $what) = $row; + [$photos, $what] = $row; $this->header($photos); - $this->$what($photos, $i % 2); + $this->$what($photos, ($i++) % 2); } echo '