From a826153bb54b168060bd92048b2fbdeebe14e145 Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Wed, 1 Jul 2026 10:04:28 +0200 Subject: [PATCH] Use namespaced DB helper in schema bootstrap --- .../edgegateway/classes/edge_gateway_schema_bootstrap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/nginx/app/modules/edgegateway/classes/edge_gateway_schema_bootstrap.php b/services/nginx/app/modules/edgegateway/classes/edge_gateway_schema_bootstrap.php index a2368f1d..50595a12 100644 --- a/services/nginx/app/modules/edgegateway/classes/edge_gateway_schema_bootstrap.php +++ b/services/nginx/app/modules/edgegateway/classes/edge_gateway_schema_bootstrap.php @@ -424,17 +424,17 @@ class edge_gateway_schema_bootstrap private static function pdo(): \PDO { - if (!class_exists('db', false)) { + if (!class_exists(db::class, false)) { $dbClassPath = __DIR__ . '/../../../classes/db.php'; if (is_file($dbClassPath)) { require_once $dbClassPath; } } - if (!class_exists('db')) { + if (!class_exists(db::class)) { throw new \RuntimeException('Database connection helper is not available.'); } - return \db::getPDO(); + return db::getPDO(); } }