Fixed facebook connect login nav to obey openid settings

This commit is contained in:
Jeffery To 2009-10-09 11:31:55 +08:00
parent 11e36b18cc
commit b8f8c41c18

View File

@ -78,6 +78,7 @@ class FBCLoginGroupNav extends Widget
// action => array('prompt', 'title')
$menu = array();
if (!common_config('site','openidonly')) {
$menu['login'] = array(_('Login'),
_('Login with a username and password'));
@ -85,9 +86,12 @@ class FBCLoginGroupNav extends Widget
$menu['register'] = array(_('Register'),
_('Sign up for a new account'));
}
}
if (common_config('openid', 'enabled')) {
$menu['openidlogin'] = array(_('OpenID'),
_('Login or register with OpenID'));
}
$menu['FBConnectLogin'] = array(_('Facebook'),
_('Login or register using Facebook'));