mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:05:56 +00:00
fix pluginhost created without dbh
This commit is contained in:
@@ -769,7 +769,7 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
$system_enabled = array_map("trim", explode(",", PLUGINS));
|
$system_enabled = array_map("trim", explode(",", PLUGINS));
|
||||||
$user_enabled = array_map("trim", explode(",", get_pref( "_ENABLED_PLUGINS")));
|
$user_enabled = array_map("trim", explode(",", get_pref( "_ENABLED_PLUGINS")));
|
||||||
|
|
||||||
$tmppluginhost = new PluginHost();
|
$tmppluginhost = new PluginHost(Db::get());
|
||||||
$tmppluginhost->load_all($tmppluginhost::KIND_ALL, $_SESSION["uid"]);
|
$tmppluginhost->load_all($tmppluginhost::KIND_ALL, $_SESSION["uid"]);
|
||||||
$tmppluginhost->load_data(true);
|
$tmppluginhost->load_data(true);
|
||||||
|
|
||||||
|
|||||||
@@ -347,7 +347,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($options["list-plugins"])) {
|
if (isset($options["list-plugins"])) {
|
||||||
$tmppluginhost = new PluginHost();
|
$tmppluginhost = new PluginHost(Db::get());
|
||||||
$tmppluginhost->load_all($tmppluginhost::KIND_ALL);
|
$tmppluginhost->load_all($tmppluginhost::KIND_ALL);
|
||||||
$enabled = array_map("trim", explode(",", PLUGINS));
|
$enabled = array_map("trim", explode(",", PLUGINS));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user