Browse Source

fix pluginhost created without dbh

Andrew Dolgov 11 years ago
parent
commit
72ff013729
2 changed files with 2 additions and 2 deletions
  1. 1 1
      classes/pref/prefs.php
  2. 1 1
      update.php

+ 1 - 1
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);
 

+ 1 - 1
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));