summaryrefslogtreecommitdiff
path: root/actions/invite.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-07-01 00:50:19 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-07-01 00:50:19 +0000
commit6c28a07cf58120e271de6e0c9c89a1f9a6d0101e (patch)
tree26683f5909d96ab00a5cb6d8e58f374fa99db0ee /actions/invite.php
parent015492daace57361c3cdfe91feafdbeb2d2cf6bd (diff)
parentfbb7757c4b546bee7b2bf224e5544f7af3fa7d94 (diff)
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'actions/invite.php')
-rw-r--r--actions/invite.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/invite.php b/actions/invite.php
index 5dcc83652..bdea4807d 100644
--- a/actions/invite.php
+++ b/actions/invite.php
@@ -35,7 +35,9 @@ class InviteAction extends CurrentUserDesignAction
function handle($args)
{
parent::handle($args);
- if (!common_logged_in()) {
+ if (!common_config('invite', 'enabled')) {
+ $this->clientError(_('Invites have been disabled.'));
+ } else if (!common_logged_in()) {
$this->clientError(sprintf(_('You must be logged in to invite other users to use %s'),
common_config('site', 'name')));
return;