diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-07-01 00:50:19 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-07-01 00:50:19 +0000 |
commit | 6c28a07cf58120e271de6e0c9c89a1f9a6d0101e (patch) | |
tree | 26683f5909d96ab00a5cb6d8e58f374fa99db0ee /lib/facebookaction.php | |
parent | 015492daace57361c3cdfe91feafdbeb2d2cf6bd (diff) | |
parent | fbb7757c4b546bee7b2bf224e5544f7af3fa7d94 (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'lib/facebookaction.php')
-rw-r--r-- | lib/facebookaction.php | 14 |
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' => |