diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-10 11:53:35 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-10 11:53:35 -0400 |
commit | e9ed20a69d8f646bc85151c1e890f5828a966fcf (patch) | |
tree | e72bdf25cc94c630c31863d2985b1f29b4b27414 /lib/logingroupnav.php | |
parent | 17dcf1c3170bc905e3b0fdffc804d6f7229ac61b (diff) | |
parent | 14b46e2183f10359cc53d597913a878f53e23719 (diff) |
Merge commit 'jeff-themovie/0.8.x-openidonly' into 0.8.x
Diffstat (limited to 'lib/logingroupnav.php')
-rw-r--r-- | lib/logingroupnav.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/logingroupnav.php b/lib/logingroupnav.php index f23985f3a..919fd3db9 100644 --- a/lib/logingroupnav.php +++ b/lib/logingroupnav.php @@ -72,11 +72,13 @@ class LoginGroupNav extends Widget // action => array('prompt', 'title') $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')); + if (!common_config('site','openidonly')) { + $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')); |