summaryrefslogtreecommitdiff
path: root/actions/showstream.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/showstream.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/showstream.php')
-rw-r--r--actions/showstream.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 9b6536293..f5886f3d3 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -535,10 +535,16 @@ class ShowstreamAction extends Action
function showAnonymousMessage()
{
- $m = sprintf(_('**%s** has an account on %%%%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 follow **%s**\'s notices and many more! ([Read more](%%%%doc.help%%%%))'),
- $this->user->nickname, $this->user->nickname);
+ if (!(common_config('site','closed') || common_config('site','inviteonly'))) {
+ $m = sprintf(_('**%s** has an account on %%%%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 follow **%s**\'s notices and many more! ([Read more](%%%%doc.help%%%%))'),
+ $this->user->nickname, $this->user->nickname);
+ } else {
+ $m = sprintf(_('**%s** has an account on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
+ 'based on the Free Software [Laconica](http://laconi.ca/) tool. '),
+ $this->user->nickname, $this->user->nickname);
+ }
$this->elementStart('div', array('id' => 'anon_notice'));
$this->raw(common_markup_to_html($m));
$this->elementEnd('div');