From: CiaranG Date: Thu, 19 Mar 2009 18:08:49 +0000 (+0000) Subject: Get rid of 'Join now...' message if site is closed or invite only. See ticket #1335 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e1186dfd0e96a64688c107f28a93b1ef172f56a;p=quix0rs-gnu-social.git Get rid of 'Join now...' message if site is closed or invite only. See ticket #1335 --- diff --git a/actions/public.php b/actions/public.php index a20ae40321..9b22e0a2ce 100644 --- a/actions/public.php +++ b/actions/public.php @@ -207,9 +207,14 @@ class PublicAction extends Action function showAnonymousMessage() { - $m = _('This is %%site.name%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' . - 'based on the Free Software [Laconica](http://laconi.ca/) tool. ' . - '[Join now](%%action.register%%) to share notices about yourself with friends, family, and colleagues! ([Read more](%%doc.help%%))'); + if (! (common_config('site','closed') || common_config('site','inviteonly'))) { + $m = _('This is %%site.name%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' . + 'based on the Free Software [Laconica](http://laconi.ca/) tool. ' . + '[Join now](%%action.register%%) to share notices about yourself with friends, family, and colleagues! ([Read more](%%doc.help%%))'); + } else { + $m = _('This is %%site.name%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' . + 'based on the Free Software [Laconica](http://laconi.ca/) tool.'); + } $this->elementStart('div', array('id' => 'anon_notice')); $this->raw(common_markup_to_html($m)); $this->elementEnd('div');