From 8439f9a17d01d58057ef65e439bdd3fb6475f69f Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Thu, 21 May 2026 19:40:04 +0100 Subject: Rename gallery→assembly, image→component throughout class SQL and PHP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- stock_rss.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stock_rss.php') 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()}"; } -- cgit v1.3