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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user