forked from GNUsocial/gnu-social
		
	Fixed facebook connect login nav to obey openid settings
This commit is contained in:
		| @@ -78,16 +78,20 @@ class FBCLoginGroupNav extends Widget | ||||
|         // action => array('prompt', 'title') | ||||
|         $menu = array(); | ||||
|  | ||||
|         $menu['login'] = array(_('Login'), | ||||
|                          _('Login with a username and password')); | ||||
|         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')); | ||||
|             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')); | ||||
|         if (common_config('openid', 'enabled')) { | ||||
|             $menu['openidlogin'] = array(_('OpenID'), | ||||
|                                    _('Login or register with OpenID')); | ||||
|         } | ||||
|  | ||||
|         $menu['FBConnectLogin'] = array(_('Facebook'), | ||||
|                                _('Login or register using Facebook')); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user