]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't show register link if the site is closed
authorEvan Prodromou <evan@prodromou.name>
Thu, 24 Jul 2008 23:58:04 +0000 (19:58 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 24 Jul 2008 23:58:04 +0000 (19:58 -0400)
darcs-hash:20080724235804-84dde-daf159e938289ad2d593d3825ce845bcbecac053.gz

lib/util.php

index 1d3d26da4406eaa2cc973f89c7202a7c4ccb2154..70130689563651d88b99a99dcd721b55fa14ab6e 100644 (file)
@@ -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');