diff options
author | Federico Marani <federico.marani@ymail.com> | 2009-03-28 13:52:01 +0000 |
---|---|---|
committer | Federico Marani <federico.marani@ymail.com> | 2009-03-28 13:52:01 +0000 |
commit | 4b3f022fc2ff142e6d1cb6740b7f89108cfda292 (patch) | |
tree | a7e0f0e6730a02e6a2fc6196bbeabcb1b932baae /lib/logingroupnav.php | |
parent | 420c3613049bec1360cdeb1f50283b239adf23d3 (diff) | |
parent | 8c073a34ce472fc8d0385659a222339a5ba4254a (diff) |
Merge branch '0.8.x' of git://gitorious.org/laconica/dev into 0.8.x
Conflicts:
lib/jabber.php
Diffstat (limited to 'lib/logingroupnav.php')
-rw-r--r-- | lib/logingroupnav.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/logingroupnav.php b/lib/logingroupnav.php index fd909581f..f23985f3a 100644 --- a/lib/logingroupnav.php +++ b/lib/logingroupnav.php @@ -70,16 +70,16 @@ class LoginGroupNav extends Widget function show() { // action => array('prompt', 'title') - $menu = - array('login' => - array(_('Login'), - _('Login with a username and password')), - 'register' => - array(_('Register'), - _('Sign up for a new account')), - 'openidlogin' => - array(_('OpenID'), - _('Login or register with OpenID'))); + $menu = array(); + + $menu['login'] = array(_('Login'), + _('Login with a username and password')); + if (!(common_config('site','closed') || common_config('site','inviteonly'))) { + $menu['register'] = array(_('Register'), + _('Sign up for a new account')); + } + $menu['openidlogin'] = array(_('OpenID'), + _('Login or register with OpenID')); $action_name = $this->action->trimmed('action'); $this->action->elementStart('ul', array('class' => 'nav')); |