Fixed facebook connect login nav to obey openid settings
This commit is contained in:
parent
11e36b18cc
commit
b8f8c41c18
|
@ -78,6 +78,7 @@ class FBCLoginGroupNav extends Widget
|
||||||
// action => array('prompt', 'title')
|
// action => array('prompt', 'title')
|
||||||
$menu = array();
|
$menu = array();
|
||||||
|
|
||||||
|
if (!common_config('site','openidonly')) {
|
||||||
$menu['login'] = array(_('Login'),
|
$menu['login'] = array(_('Login'),
|
||||||
_('Login with a username and password'));
|
_('Login with a username and password'));
|
||||||
|
|
||||||
|
@ -85,9 +86,12 @@ class FBCLoginGroupNav extends Widget
|
||||||
$menu['register'] = array(_('Register'),
|
$menu['register'] = array(_('Register'),
|
||||||
_('Sign up for a new account'));
|
_('Sign up for a new account'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (common_config('openid', 'enabled')) {
|
||||||
$menu['openidlogin'] = array(_('OpenID'),
|
$menu['openidlogin'] = array(_('OpenID'),
|
||||||
_('Login or register with 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