Needed the else. Tested logged in/out ; site closed/inviteonly/both

This commit is contained in:
Eric Helgeson 2009-06-16 17:18:48 -05:00
parent acff6d4bfd
commit 4450f3352c
1 changed files with 5 additions and 3 deletions

View File

@ -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));