summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-16 12:12:25 +0100
committerlsces <lester@lsces.co.uk>2026-04-16 12:12:25 +0100
commit243a212376fd907762f78fec19cb288f5417a4cf (patch)
tree5477abc4968e865a78f410e9032afbe6b7986ced /includes
parentacbff2c95adef524eafc3c93b39c3fd0880eb3db (diff)
downloadfisheye-243a212376fd907762f78fec19cb288f5417a4cf.tar.gz
fisheye-243a212376fd907762f78fec19cb288f5417a4cf.tar.bz2
fisheye-243a212376fd907762f78fec19cb288f5417a4cf.zip
Still need some work on the different gallery styles, but this sorts the right number of images per page calculation
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/classes/FisheyeGallery.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/classes/FisheyeGallery.php b/includes/classes/FisheyeGallery.php
index e160cfd..19a23fd 100755
--- a/includes/classes/FisheyeGallery.php
+++ b/includes/classes/FisheyeGallery.php
@@ -242,7 +242,7 @@ class FisheyeGallery extends FisheyeBase {
array_push( $bindVars, $mantissa );
}
} elseif( $this->getLayout() == FISHEYE_PAGINATION_FIXED_GRID ) {
- $rowCount = ($pListHash['rows_per_page'] ?? 3) * ($pListHash['cols_per_page'] ?? 3);
+ $rowCount = ($this->mInfo['rows_per_page'] ?? 3) * ($this->mInfo['cols_per_page'] ?? 3);
$offset = $rowCount * ( (int) $pListHash['page'] - 1);
} else {
$rowCount = $pListHash['max_records'];
@@ -279,7 +279,7 @@ class FisheyeGallery extends FisheyeBase {
LibertyContent::postGetList( $pListHash );
- return count ( $this->mItems ) > 0;
+ return \count ( $this->mItems ) > 0;
}
public function getImageList() {