Fixed facebook connect login nav to obey openid settings
This commit is contained in:
parent
11e36b18cc
commit
b8f8c41c18
|
@ -78,16 +78,20 @@ class FBCLoginGroupNav extends Widget
|
||||||
// action => array('prompt', 'title')
|
// action => array('prompt', 'title')
|
||||||
$menu = array();
|
$menu = array();
|
||||||
|
|
||||||
$menu['login'] = array(_('Login'),
|
if (!common_config('site','openidonly')) {
|
||||||
_('Login with a username and password'));
|
$menu['login'] = array(_('Login'),
|
||||||
|
_('Login with a username and password'));
|
||||||
|
|
||||||
if (!(common_config('site','closed') || common_config('site','inviteonly'))) {
|
if (!(common_config('site','closed') || common_config('site','inviteonly'))) {
|
||||||
$menu['register'] = array(_('Register'),
|
$menu['register'] = array(_('Register'),
|
||||||
_('Sign up for a new account'));
|
_('Sign up for a new account'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu['openidlogin'] = array(_('OpenID'),
|
if (common_config('openid', 'enabled')) {
|
||||||
_('Login or register with OpenID'));
|
$menu['openidlogin'] = array(_('OpenID'),
|
||||||
|
_('Login or register with OpenID'));
|
||||||
|
}
|
||||||
|
|
||||||
$menu['FBConnectLogin'] = array(_('Facebook'),
|
$menu['FBConnectLogin'] = array(_('Facebook'),
|
||||||
_('Login or register using Facebook'));
|
_('Login or register using Facebook'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user