From: Andrew Dolgov Date: Wed, 17 Apr 2013 14:30:22 +0000 (+0400) Subject: fix pluginhost created without dbh X-Git-Tag: 1.7.9~25^2~166 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=72ff0137298f60970c664f0be24327b120bf4ac7;p=tt-rss.git fix pluginhost created without dbh --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index faab6923..514f0a2e 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -769,7 +769,7 @@ class Pref_Prefs extends Handler_Protected { $system_enabled = array_map("trim", explode(",", 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_data(true); diff --git a/update.php b/update.php index 894ccb32..1e653311 100755 --- a/update.php +++ b/update.php @@ -347,7 +347,7 @@ } if (isset($options["list-plugins"])) { - $tmppluginhost = new PluginHost(); + $tmppluginhost = new PluginHost(Db::get()); $tmppluginhost->load_all($tmppluginhost::KIND_ALL); $enabled = array_map("trim", explode(",", PLUGINS));