]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix pluginhost created without dbh
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 14:30:22 +0000 (18:30 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 14:30:22 +0000 (18:30 +0400)
classes/pref/prefs.php
update.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);
 
index 894ccb3272da31007003ae2e589f6ee3b3538f7c..1e653311d2b20b0296dfb1818fbce5b67476fbfa 100755 (executable)
        }
 
        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));