diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 14:49:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 14:49:18 +0300 |
commit | df5d2a06657be3abb671c44295848afefc7f8fd4 (patch) | |
tree | ffa8e53ec186bb45b2d404225c0be645541e20d7 /classes/pluginhost.php | |
parent | 62c37cd697187a593afca4d17db26cfd6ef36ece (diff) |
pluginhost: do not connect via legacy DB api until requested
log all initiated legacy database connections
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r-- | classes/pluginhost.php | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ <?php class PluginHost { - private $dbh; private $pdo; private $hooks = array(); private $plugins = array(); @@ -63,7 +62,6 @@ class PluginHost { const KIND_USER = 3; function __construct() { - $this->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() { |