]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pref/prefs.php
fix pluginhost created without dbh
[tt-rss.git] / classes / pref / prefs.php
index faab69235504c66097fc3baf1717f91f4ea19ef5..514f0a2e3554afbe81c967fa3871b6379c5a1df9 100644 (file)
@@ -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);