summaryrefslogtreecommitdiff
path: root/lib/facebookaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-02 08:51:10 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-02 08:51:10 -0400
commit5f9a4ebef493997557ef4470268bed0e5799b6cb (patch)
treef9a06c1773e511d3273c5d9223d06ca0806d5341 /lib/facebookaction.php
parente52997e52fe02960908eb6a9637a3349a2c74dad (diff)
parentd04ab14a5a15f9119bedca1332eb516ecf5ca483 (diff)
Merge branch '0.8.x' into queuemanager
Diffstat (limited to 'lib/facebookaction.php')
-rw-r--r--lib/facebookaction.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/facebookaction.php b/lib/facebookaction.php
index a445750f7..1ae90d53b 100644
--- a/lib/facebookaction.php
+++ b/lib/facebookaction.php
@@ -213,12 +213,14 @@ class FacebookAction extends Action
array('href' => 'index.php', 'title' => _('Home')), _('Home'));
$this->elementEnd('li');
- $this->elementStart('li',
- array('class' =>
- ($this->action == 'facebookinvite') ? 'current' : 'facebook_invite'));
- $this->element('a',
- array('href' => 'invite.php', 'title' => _('Invite')), _('Invite'));
- $this->elementEnd('li');
+ if (common_config('invite', 'enabled')) {
+ $this->elementStart('li',
+ array('class' =>
+ ($this->action == 'facebookinvite') ? 'current' : 'facebook_invite'));
+ $this->element('a',
+ array('href' => 'invite.php', 'title' => _('Invite')), _('Invite'));
+ $this->elementEnd('li');
+ }
$this->elementStart('li',
array('class' =>