summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-01 14:40:58 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-01 14:40:58 -0400
commit3bec08c878d50cfa43ffb72466842bda5dd88171 (patch)
treeabb5c38a0567dfb9af37c68801832b8bb56e9335 /actions/showgroup.php
parent783d292739886811ab41215c614940d24214358f (diff)
parente7381493ad036e686f82f432066f00ff911ad5d5 (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev
Conflicts: README lib/router.php
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r--actions/showgroup.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index 95d2914ba..79445851f 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -396,11 +396,18 @@ class ShowgroupAction extends Action
function showAnonymousMessage()
{
- $m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
- 'based on the Free Software [Laconica](http://laconi.ca/) tool. Its members share ' .
- 'short messages about their life and interests. '.
- '[Join now](%%%%action.register%%%%) to become part of this group and many more! ([Read more](%%%%doc.help%%%%))'),
+ if (!(common_config('site','closed') || common_config('site','inviteonly'))) {
+ $m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
+ 'based on the Free Software [Laconica](http://laconi.ca/) tool. Its members share ' .
+ 'short messages about their life and interests. '.
+ '[Join now](%%%%action.register%%%%) to become part of this group and many more! ([Read more](%%%%doc.help%%%%))'),
$this->group->nickname);
+ } else {
+ $m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
+ 'based on the Free Software [Laconica](http://laconi.ca/) tool. Its members share ' .
+ 'short messages about their life and interests. '),
+ $this->group->nickname);
+ }
$this->elementStart('div', array('id' => 'anon_notice'));
$this->raw(common_markup_to_html($m));
$this->elementEnd('div');