forked from GNUsocial/gnu-social
Merge commit 'erichelgeson/no-posts-verbage' into 0.8.x
* commit 'erichelgeson/no-posts-verbage': Needed the else. Tested logged in/out ; site closed/inviteonly/both Verbage of a closed invite only site, it shouldnt ask you to register.
This commit is contained in:
commit
907b5f7b40
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user