diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-24 19:58:04 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-24 19:58:04 -0400 |
commit | e0e5013a3225fc55a02e4a9ebed9e10c28dc3050 (patch) | |
tree | a2e7aff4a9f103378aa26decad984143a5c00f61 /lib/util.php | |
parent | e97c06e8e27b4dce977a493a47c216d6c5796c2e (diff) |
don't show register link if the site is closed
darcs-hash:20080724235804-84dde-daf159e938289ad2d593d3825ce845bcbecac053.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 1d3d26da4..701306895 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'); |