summaryrefslogtreecommitdiff
path: root/lib/statusnet.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-16 14:18:37 -0700
committerBrion Vibber <brion@pobox.com>2010-03-16 16:01:00 -0700
commitd9a9fd3779c592e3f4e0a8aea8e385ee2183c0b3 (patch)
tree3d2772790750960f4f4113076fe782cd3c4d40de /lib/statusnet.php
parent910108b9ae18d75782f236248be9770a8d2efb9c (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.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php
index eba9ab9b8..fe93680b0 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)) {