forked from GNUsocial/gnu-social
		
	Get rid of 'Join now...' message if site is closed or invite only. See ticket #1335
This commit is contained in:
		| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user