summaryrefslogtreecommitdiff
path: root/stock_rss.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 /stock_rss.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 'stock_rss.php')
-rwxr-xr-xstock_rss.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/stock_rss.php b/stock_rss.php
index b413fae..656db60 100755
--- a/stock_rss.php
+++ b/stock_rss.php
@@ -32,17 +32,17 @@ if( !$gBitUser->hasPermission( 'p_stock_view' ) ) {
$listHash = [
'max_records' => $gBitSystem->getConfig( 'stock_rss_max_records', 10 ),
'sort_mode' => 'last_modified_desc',
- 'gallery_id' => !empty( $_REQUEST['gallery_id'] ) ? $_REQUEST['gallery_id'] : null,
+ 'assembly_id' => !empty( $_REQUEST['assembly_id'] ) ? $_REQUEST['assembly_id'] : null,
'user_id' => !empty( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : null,
];
// check if we want to use the cache file
- $cacheFile = TEMP_PKG_PATH.RSS_PKG_NAME.'/'.STOCK_PKG_NAME.'/'."g{$listHash['gallery_id']}u{$listHash['user_id']}".$cacheFileTail;
+ $cacheFile = TEMP_PKG_PATH.RSS_PKG_NAME.'/'.STOCK_PKG_NAME.'/'."g{$listHash['assembly_id']}u{$listHash['user_id']}".$cacheFileTail;
$rss->useCached( $rss_version_name, $cacheFile, $gBitSystem->getConfig( 'rssfeed_cache_time' ));
// if we have a gallery we can work with - load it
- if( BitBase::verifyId( $_REQUEST['gallery_id'] ?? 0 ) ) {
- $gallery = new StockAssembly( $_REQUEST['gallery_id'] );
+ if( BitBase::verifyId( $_REQUEST['assembly_id'] ?? 0 ) ) {
+ $gallery = new StockAssembly( $_REQUEST['assembly_id'] );
$gallery->load();
$rss->title .= " - {$gallery->getTitle()}";
}