summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-16 12:10:46 +0100
committerlsces <lester@lsces.co.uk>2026-04-16 12:10:46 +0100
commitacbff2c95adef524eafc3c93b39c3fd0880eb3db (patch)
tree95f51a670e5ef8e6e9c510fab6a4d0cf46e1e13c
parent301eb65aa1d0167eaf49125daf486f81e7215cf4 (diff)
downloadfisheye-acbff2c95adef524eafc3c93b39c3fd0880eb3db.tar.gz
fisheye-acbff2c95adef524eafc3c93b39c3fd0880eb3db.tar.bz2
fisheye-acbff2c95adef524eafc3c93b39c3fd0880eb3db.zip
Get the right number of images per page
-rwxr-xr-xincludes/display_fisheye_gallery_inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/display_fisheye_gallery_inc.php b/includes/display_fisheye_gallery_inc.php
index 24bfe28..bda8cd5 100755
--- a/includes/display_fisheye_gallery_inc.php
+++ b/includes/display_fisheye_gallery_inc.php
@@ -10,7 +10,7 @@ $displayHash = [ 'perm_name' => 'p_fisheye_view' ];
$gContent->invokeServices( 'content_display_function', $displayHash );
$listHash = $_REQUEST;
-$listHash['max_records'] = 12;
+$listHash['max_records'] = $gContent->mInfo["images_per_page"] ?? $max_records;
switch( $gContent->getLayout() ) {
case 'auto_flow':