summaryrefslogtreecommitdiff
path: root/modules/mod_images.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-21 19:40:04 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-21 19:40:04 +0100
commit8439f9a17d01d58057ef65e439bdd3fb6475f69f (patch)
treec6afc0952a043c79ad5afbab372b78c9726887ce /modules/mod_images.php
parent856ead0e4bc25be5dc6c770fc8da8aade2d83e12 (diff)
downloadstock-8439f9a17d01d58057ef65e439bdd3fb6475f69f.tar.gz
stock-8439f9a17d01d58057ef65e439bdd3fb6475f69f.tar.bz2
stock-8439f9a17d01d58057ef65e439bdd3fb6475f69f.zip
Rename gallery→assembly, image→component throughout class SQL and PHP
Table names: stock_gallery→stock_assembly, stock_image→stock_component, stock_gallery_image_map→stock_assembly_component_map. Column names: gallery_id→assembly_id, image_id→component_id, gallery_content_id→assembly_content_id. Properties: mGalleryId→mAssemblyId, mImageId→mComponentId, mGalleryPath→mAssemblyPath. Methods: loadImages→loadComponents, loadCurrentImage→loadCurrentComponent, getImageCount→getComponentCount, getParentGalleries→getParentAssemblies, etc. Sequences corrected to stock_assembly_id_seq / stock_component_id_seq. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'modules/mod_images.php')
-rwxr-xr-xmodules/mod_images.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mod_images.php b/modules/mod_images.php
index a01f8e4..76814f1 100755
--- a/modules/mod_images.php
+++ b/modules/mod_images.php
@@ -25,7 +25,7 @@ $listHash = $moduleParams->value;
if( !empty( $gContent ) && $gContent->getField( 'content_type_guid' ) == STOCKASSEMBLY_CONTENT_TYPE_GUID ) {
$displayCount = empty( $gContent->mItems ) ? 0 : count( $gContent->mItems );
$thumbCount = $gContent->mInfo['rows_per_page'] * $gContent->mInfo["cols_per_page"];
- $listHash['gallery_id'] = $gContent->mGalleryId;
+ $listHash['assembly_id'] = $gContent->mAssemblyId;
$display = $displayCount >= $thumbCount;
}