From acff6d4bfd05ffba5f0819f2dad56af40c899e76 Mon Sep 17 00:00:00 2001 From: Eric Helgeson Date: Fri, 12 Jun 2009 16:43:40 -0500 Subject: [PATCH 1/2] Verbage of a closed invite only site, it shouldnt ask you to register. --- actions/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/public.php b/actions/public.php index 27153f1315..c04843383d 100644 --- a/actions/public.php +++ b/actions/public.php @@ -173,7 +173,7 @@ class PublicAction extends Action if (common_logged_in()) { $message .= _('Be the first to post!'); } - else { + if (! (common_config('site','closed') || common_config('site','inviteonly'))) { $message .= _('Why not [register an account](%%action.register%%) and be the first to post!'); } From 4450f3352c4dafcbe132146873ef9fad251d9714 Mon Sep 17 00:00:00 2001 From: Eric Helgeson Date: Tue, 16 Jun 2009 17:18:48 -0500 Subject: [PATCH 2/2] Needed the else. Tested logged in/out ; site closed/inviteonly/both --- actions/public.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/actions/public.php b/actions/public.php index c04843383d..2c8083320e 100644 --- a/actions/public.php +++ b/actions/public.php @@ -173,9 +173,11 @@ class PublicAction extends Action if (common_logged_in()) { $message .= _('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!'); - } + else { + 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));