forked from GNUsocial/gnu-social
Needed the else. Tested logged in/out ; site closed/inviteonly/both
This commit is contained in:
parent
acff6d4bfd
commit
4450f3352c
@ -173,9 +173,11 @@ class PublicAction extends Action
|
|||||||
if (common_logged_in()) {
|
if (common_logged_in()) {
|
||||||
$message .= _('Be the first to post!');
|
$message .= _('Be the first to post!');
|
||||||
}
|
}
|
||||||
if (! (common_config('site','closed') || common_config('site','inviteonly'))) {
|
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->elementStart('div', 'guide');
|
||||||
$this->raw(common_markup_to_html($message));
|
$this->raw(common_markup_to_html($message));
|
||||||
|
Loading…
Reference in New Issue
Block a user