summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-02 17:31:55 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-02 17:31:55 +0100
commitdebbce367267fad7b039b27cf21131304c947dd9 (patch)
treea9cc59746597a3565099624f7606e25e26600a34
parent08f901e00b0627157318decfcde8f63491a26d33 (diff)
downloadstock-debbce367267fad7b039b27cf21131304c947dd9.tar.gz
stock-debbce367267fad7b039b27cf21131304c947dd9.tar.bz2
stock-debbce367267fad7b039b27cf21131304c947dd9.zip
ImportSimpleComponent: replace constant with literal — autoload not triggered in import context
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--import/ImportSimpleComponent.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/import/ImportSimpleComponent.php b/import/ImportSimpleComponent.php
index 778df85..83161ce 100644
--- a/import/ImportSimpleComponent.php
+++ b/import/ImportSimpleComponent.php
@@ -47,7 +47,7 @@ function stockExpungeComponentByTitle( string $title ): bool {
$contentId = $gBitDb->getOne(
"SELECT lc.`content_id`
FROM `".BIT_DB_PREFIX."liberty_content` lc
- WHERE lc.`content_type_guid` = '".STOCKCOMPONENT_CONTENT_TYPE_GUID."' AND lc.`title` = ?",
+ WHERE lc.`content_type_guid` = '".'stockcomponent'."' AND lc.`title` = ?",
[ $title ]
);
if( !$contentId ) {
@@ -74,7 +74,7 @@ function stockImportSimpleComponent( array $data, int $rowNum ): array {
$exists = $gBitDb->getOne(
"SELECT lc.`content_id`
FROM `".BIT_DB_PREFIX."liberty_content` lc
- WHERE lc.`content_type_guid` = '".STOCKCOMPONENT_CONTENT_TYPE_GUID."' AND lc.`title` = ?",
+ WHERE lc.`content_type_guid` = '".'stockcomponent'."' AND lc.`title` = ?",
[ $title ]
);
if( $exists ) {