diff options
author | CiaranG <ciaran@ciarang.com> | 2009-03-19 18:08:49 +0000 |
---|---|---|
committer | CiaranG <ciaran@ciarang.com> | 2009-03-19 18:08:49 +0000 |
commit | 0e1186dfd0e96a64688c107f28a93b1ef172f56a (patch) | |
tree | a0bd99943ce76d80c751f957f7536576840864a2 /actions | |
parent | 3d8a8aa03c7672966006aa0b7be5da699decbcb3 (diff) |
Get rid of 'Join now...' message if site is closed or invite only. See ticket #1335
Diffstat (limited to 'actions')
-rw-r--r-- | actions/public.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/actions/public.php b/actions/public.php index a20ae4032..9b22e0a2c 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'); |