From df5d2a06657be3abb671c44295848afefc7f8fd4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 14:49:18 +0300 Subject: pluginhost: do not connect via legacy DB api until requested log all initiated legacy database connections --- classes/pluginhost.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'classes/pluginhost.php') diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 561a10a41..f07e2bbf4 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -1,6 +1,5 @@ dbh = Db::get(); $this->pdo = Db::pdo(); $this->storage = array(); @@ -91,7 +89,7 @@ class PluginHost { } function get_dbh() { - return $this->dbh; + return Db::get(); } function get_pdo() { -- cgit v1.2.3-54-g00ecf