diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-21 19:40:04 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-21 19:40:04 +0100 |
| commit | 8439f9a17d01d58057ef65e439bdd3fb6475f69f (patch) | |
| tree | c6afc0952a043c79ad5afbab372b78c9726887ce /sitemap.php | |
| parent | 856ead0e4bc25be5dc6c770fc8da8aade2d83e12 (diff) | |
| download | stock-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 'sitemap.php')
| -rw-r--r-- | sitemap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sitemap.php b/sitemap.php index e3e8f94..2f8aa63 100644 --- a/sitemap.php +++ b/sitemap.php @@ -18,7 +18,7 @@ if( $galleries = $gallery->getList( $listHash ) ) { foreach( $galleries as $row ) { $url = StockAssembly::getDisplayUrlFromHash( $row ); if( empty( $url ) ) continue; - $gSiteMapHash['g'.$row['gallery_id']] = [ + $gSiteMapHash['g'.$row['assembly_id']] = [ 'loc' => BIT_BASE_URI . $url, 'lastmod' => date( 'Y-m-d', $row['last_modified'] ), 'changefreq' => 'monthly', @@ -33,7 +33,7 @@ if( $images = $image->getList( $listHash ) ) { foreach( $images as $row ) { $url = StockComponent::getDisplayUrlFromHash( $row ); if( empty( $url ) ) continue; - $gSiteMapHash['i'.$row['image_id']] = [ + $gSiteMapHash['i'.$row['component_id']] = [ 'loc' => BIT_BASE_URI . $url, 'lastmod' => date( 'Y-m-d', $row['last_modified'] ), 'changefreq' => 'monthly', |
