diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-01 12:58:49 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-01 12:58:49 -0400 |
commit | 721ba6c88f3c89c3efcc8e5f0c9169d94911825d (patch) | |
tree | f1b07dfc50858d98258a3043e3c6dbf4f00a22e3 /actions/public.php | |
parent | 8a8390c1a78a2586bb2e9e10bfcb3502739d8d76 (diff) | |
parent | 6c28a07cf58120e271de6e0c9c89a1f9a6d0101e (diff) |
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'actions/public.php')
-rw-r--r-- | actions/public.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/public.php b/actions/public.php index 9851285c4..ef9ef0d1a 100644 --- a/actions/public.php +++ b/actions/public.php @@ -182,8 +182,10 @@ class PublicAction extends Action $message .= _('Be the first to post!'); } else { - $message .= _('Why not [register an account](%%action.register%%) and be the first to post!'); - } + if (! (common_config('site','closed') || common_config('site','inviteonly'))) { + $message .= _('Why not [register an account](%%action.register%%) and be the first to post!'); + } + } $this->elementStart('div', 'guide'); $this->raw(common_markup_to_html($message)); |