diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-02 17:31:55 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-02 17:31:55 +0100 |
| commit | debbce367267fad7b039b27cf21131304c947dd9 (patch) | |
| tree | a9cc59746597a3565099624f7606e25e26600a34 | |
| parent | 08f901e00b0627157318decfcde8f63491a26d33 (diff) | |
| download | stock-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.php | 4 |
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 ) { |
