summaryrefslogtreecommitdiff
path: root/plugins/FBConnect/FBCLoginGroupNav.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-10-11 13:39:10 -0400
committerCraig Andrews <candrews@integralblue.com>2009-10-11 13:39:10 -0400
commitf719720e8ad3b09d664e33172bafef2b0fb91eea (patch)
treeef260a2b132405013025f61930c3850f498318c9 /plugins/FBConnect/FBCLoginGroupNav.php
parent96d32fb8d0752c13cb1a768a3e4c3ad36a4a0188 (diff)
parent006cfc528edab32548d1265df5dada09a1536aed (diff)
Merge remote branch 'statusnet/0.8.x' into 0.9.x
Conflicts: lib/common.php
Diffstat (limited to 'plugins/FBConnect/FBCLoginGroupNav.php')
-rw-r--r--plugins/FBConnect/FBCLoginGroupNav.php20
1 files changed, 12 insertions, 8 deletions
diff --git a/plugins/FBConnect/FBCLoginGroupNav.php b/plugins/FBConnect/FBCLoginGroupNav.php
index 6e12c2040..81b2520a4 100644
--- a/plugins/FBConnect/FBCLoginGroupNav.php
+++ b/plugins/FBConnect/FBCLoginGroupNav.php
@@ -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','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'));
+ if (common_config('openid', 'enabled')) {
+ $menu['openidlogin'] = array(_('OpenID'),
+ _('Login or register with OpenID'));
+ }
$menu['FBConnectLogin'] = array(_('Facebook'),
_('Login or register using Facebook'));