summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-06-14 16:17:22 +0800
committerJeffery To <jeffery.to@gmail.com>2009-06-14 16:17:22 +0800
commit6d308f6ffe3f894c60fafaea3ceaef86d30dfe1d (patch)
tree8cea1b246bfb704c76d67e519d4ce3b0fccf5844 /lib/common.php
parent77c94c44a622052366dcc03fee522232672d71d9 (diff)
Adds $config['invite']['enabled'] to enable/disable invites.
The invite function may not applicable for private and/or closed installs. This adds a configuration option to enable/disable invites (defaulting to enabled), hides the "Invite" nav item when necessary, and adds a check to actions/invite.php. Note that I haven't tried the Facebook application so I didn't add any checks to actions/facebookinvite.php.
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 6bf4ad21f..b51661f2a 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -130,6 +130,8 @@ $config =
'host' => null, # only set if != server
'debug' => false, # print extra debug info
'public' => array()), # JIDs of users who want to receive the public stream
+ 'invite' =>
+ array('enabled' => true),
'sphinx' =>
array('enabled' => false,
'server' => 'localhost',