summaryrefslogtreecommitdiff
path: root/actions/public.php
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-06-16 17:18:48 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-06-16 17:18:48 -0500
commit4450f3352c4dafcbe132146873ef9fad251d9714 (patch)
tree7e52067f0bc565ddfe4d7cbd675476a08fee0de8 /actions/public.php
parentacff6d4bfd05ffba5f0819f2dad56af40c899e76 (diff)
Needed the else. Tested logged in/out ; site closed/inviteonly/both
Diffstat (limited to 'actions/public.php')
-rw-r--r--actions/public.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/public.php b/actions/public.php
index c04843383..2c8083320 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));