1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:05:56 +00:00

pluginhost: do not connect via legacy DB api until requested

log all initiated legacy database connections
This commit is contained in:
Andrew Dolgov
2017-12-03 14:49:18 +03:00
parent 62c37cd697
commit df5d2a0665
5 changed files with 42 additions and 24 deletions

View File

@@ -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() {