From 4620b5d9837f6bded93e91e61cb965c3b4cf1088 Mon Sep 17 00:00:00 2001 From: 4d6178 Date: Thu, 4 Aug 2022 15:25:14 +0200 Subject: [PATCH] Replace deprecated getConnection with getDbAdapter --- application/controllers/HandlerController.php | 2 +- library/Trapdirector/TrapsActions/UIDatabase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/HandlerController.php b/application/controllers/HandlerController.php index f229ee8..209566f 100644 --- a/application/controllers/HandlerController.php +++ b/application/controllers/HandlerController.php @@ -32,7 +32,7 @@ public function indexAction() $this->moduleConfig->getHandlerListTitles(), $this->moduleConfig->getHandlerListDisplayColumns(), $this->moduleConfig->getHandlerColumns(), - $dbConn->getConnection(), + $dbConn->getDbAdapter(), $this->view, $this->moduleConfig->urlPath()); diff --git a/library/Trapdirector/TrapsActions/UIDatabase.php b/library/Trapdirector/TrapsActions/UIDatabase.php index 395e3e0..c7a2b01 100644 --- a/library/Trapdirector/TrapsActions/UIDatabase.php +++ b/library/Trapdirector/TrapsActions/UIDatabase.php @@ -224,7 +224,7 @@ public function getDb() public function getDbConn() { if ($this->getDb() == null) return null; - return $this->getDb()->getConnection(); + return $this->getDb()->getDbAdapter(); } /**