diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-23 15:55:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-23 15:55:07 -0400 |
commit | 8c073a34ce472fc8d0385659a222339a5ba4254a (patch) | |
tree | 57c83c48333b52a93b84d0910f9450c210e1815c /lib/logingroupnav.php | |
parent | b3a0eea3b66e95becb6c4595ed71c7fe71ed6437 (diff) | |
parent | 14afe2d26874ed30a0ccef5e0acda2c5171afcde (diff) |
Merge branch '0.7.x' into 0.8.x
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')); |