Fix DatabaseClient instantiation - use new instead of getInstance

DatabaseClient uses standard constructor, not singleton pattern.
Changed all DatabaseClient::getInstance() to new DatabaseClient()

This fixes the upload_from_box AJAX endpoint fatal error.

🤖 Generated with Claude Code
This commit is contained in:
DJP 2025-10-29 16:16:58 -04:00
parent e71163dea0
commit 4af7cac196

View file

@ -130,7 +130,7 @@ if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQU
break;
}
$db = DatabaseClient::getInstance();
$db = new DatabaseClient();
$stmt = $db->getConnection()->prepare("
SELECT tracking_id, opentext_id, upload_directory, metadata, description
FROM master_assets
@ -199,7 +199,7 @@ if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQU
}
// 2. Load master metadata from database
$db = DatabaseClient::getInstance();
$db = new DatabaseClient();
$stmt = $db->getConnection()->prepare("
SELECT tracking_id, opentext_id, upload_directory, metadata, description
FROM master_assets