From 81e2588ef3e0fb59f85ba9076aadd79e8e293b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9cile=20Madjar?= Date: Fri, 21 Oct 2022 08:34:41 -0400 Subject: [PATCH] fix generic_includes for 24.1 (#8192) tools/generic_includes.php missed the #8074 refactoring boat in 24.1 where all Database::singleton have been replaced by NDB_Factory::singleton()->database() This fixes the generic_includes.php file to use the new way of loading the DB object for branch 24.1-release. --- tools/generic_includes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generic_includes.php b/tools/generic_includes.php index 5eafff7d1e8..d590c1086b2 100644 --- a/tools/generic_includes.php +++ b/tools/generic_includes.php @@ -23,7 +23,7 @@ $client = new NDB_Client(); $client->makeCommandLine(); $client->initialize($configFile); -$DB = Database::singleton(); +$DB = NDB_Factory::singleton()->database(); $config = NDB_Config::singleton(); $lorisInstance = new \LORIS\LorisInstance( $DB,