Fixed OpenID appearing in primary nav when OpenID is enabled but not OpenID-only

This commit is contained in:
Jeffery To 2009-08-15 00:17:00 +08:00
parent 7dc3a90d12
commit 75a0a3e18b

View File

@ -443,8 +443,7 @@ class Action extends HTMLOutputter // lawsuit
}
$this->menuItem(common_local_url('login'),
_('Login'), _('Login to the site'), false, 'nav_login');
}
if (common_config('openid', 'enabled')) {
} else {
$this->menuItem(common_local_url('openidlogin'),
_('OpenID'), _('Login with OpenID'), false, 'nav_openid');
}