summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-26 19:30:19 +0400
committerAndrew Dolgov <[email protected]>2013-02-26 19:30:19 +0400
commitbe17885789fdf35b40e040d80c50077652069dc1 (patch)
treeb3867f5505deccabd61bd75bd2acac64ebe7c9fc /classes/pluginhost.php
parent70caff4811b1e443831e2f4e1e5a1445837fec18 (diff)
pluginhost: add get_debug()/set_debug() for plugins to detect if debugging is allowed
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 1748a067d..592629881 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -7,6 +7,7 @@ class PluginHost {
private $commands = array();
private $storage = array();
private $owner_uid;
+ private $debug;
const HOOK_ARTICLE_BUTTON = 1;
const HOOK_ARTICLE_FILTER = 2;
@@ -290,5 +291,13 @@ class PluginHost {
$_SESSION["plugin_storage"] = $this->storage;
}
}
+
+ function set_debug($debug) {
+ $this->debug = $debug;
+ }
+
+ function get_debug() {
+ return $this->debug;
+ }
}
?>