diff --git a/lib/util.php b/lib/util.php index 1d3d26da44..7013068956 100644 --- a/lib/util.php +++ b/lib/util.php @@ -284,7 +284,9 @@ function common_nav_menu() { _('Logout')); } else { common_menu_item(common_local_url('login'), _('Login')); - common_menu_item(common_local_url('register'), _('Register')); + if (!common_config('site', 'closed')) { + common_menu_item(common_local_url('register'), _('Register')); + } common_menu_item(common_local_url('openidlogin'), _('OpenID')); } common_element_end('ul');