From a3210031f4eecb13c34e66334c288db0c28cb307 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Fri, 12 Jan 2024 11:42:36 -0600 Subject: [PATCH] Change default per page in artworks list --- lib/Constants.php | 2 +- www/artworks/index.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Constants.php b/lib/Constants.php index b72d9e96..22066292 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -40,7 +40,7 @@ const SORT_LENGTH = 'length'; const COVER_THUMBNAIL_HEIGHT = 350; const COVER_THUMBNAIL_WIDTH = 350; -const COVER_ARTWORK_PER_PAGE = 50; +const COVER_ARTWORK_PER_PAGE = 20; const COVER_ARTWORK_STATUS_APPROVED = 'approved'; const COVER_ARTWORK_STATUS_DECLINED = 'declined'; const COVER_ARTWORK_STATUS_IN_USE = 'in_use'; diff --git a/www/artworks/index.php b/www/artworks/index.php index e34fe31c..6d3b9df4 100644 --- a/www/artworks/index.php +++ b/www/artworks/index.php @@ -17,7 +17,7 @@ if($page <= 0){ $page = 1; } -if($perPage != COVER_ARTWORK_PER_PAGE && $perPage != 100 && $perPage != 200){ +if($perPage != COVER_ARTWORK_PER_PAGE && $perPage != 40 && $perPage != 80){ $perPage = COVER_ARTWORK_PER_PAGE; } @@ -104,9 +104,9 @@ if($perPage !== COVER_ARTWORK_PER_PAGE){ Per page