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:
parent
e71163dea0
commit
4af7cac196
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue