private $commands = array();
private $storage = array();
private $owner_uid;
+ private $debug;
const HOOK_ARTICLE_BUTTON = 1;
const HOOK_ARTICLE_FILTER = 2;
$_SESSION["plugin_storage"] = $this->storage;
}
}
+
+ function set_debug($debug) {
+ $this->debug = $debug;
+ }
+
+ function get_debug() {
+ return $this->debug;
+ }
}
?>
}
$pluginhost = new PluginHost($link);
+ $pluginhost->set_debug($debug_enabled);
$user_plugins = get_pref($link, "_ENABLED_PLUGINS", $owner_uid);
$pluginhost->load(PLUGINS, $pluginhost::KIND_ALL);