diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-16 14:18:37 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-22 13:58:27 -0700 |
commit | 886e28aaa9e4e9a524d5b1a933a2d2a13994aec9 (patch) | |
tree | 2b3f5359155080dc467a90fd37d2ed8135291f24 /lib/statusnet.php | |
parent | e89908f26140c217e01b2f8f755712f38f3935f3 (diff) |
Stub plugins administration panel, allows for disabling/re-enabling plugins from the default plugins list.
Diffstat (limited to 'lib/statusnet.php')
-rw-r--r-- | lib/statusnet.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php index 776cfb579..98f25c8a0 100644 --- a/lib/statusnet.php +++ b/lib/statusnet.php @@ -163,6 +163,11 @@ class StatusNet { // Load default plugins foreach (common_config('plugins', 'default') as $name => $params) { + $key = 'disable-' . $name; + if (common_config('plugins', $key)) { + continue; + } + if (is_null($params)) { addPlugin($name); } else if (is_array($params)) { |