forked from GNUsocial/gnu-social
Only show "public:site" in ToSelector if notice/allowprivate is true
This commit is contained in:
parent
f68d1ade3f
commit
a838c90951
@ -119,9 +119,11 @@ class ToSelector extends Widget
|
|||||||
// Reverse so we can add entries at the end (can't unshift with a key)
|
// Reverse so we can add entries at the end (can't unshift with a key)
|
||||||
$choices = array_reverse($choices);
|
$choices = array_reverse($choices);
|
||||||
|
|
||||||
// TRANS: Option in drop-down of potential addressees.
|
if (common_config('notice', 'allowprivate')) {
|
||||||
// TRANS: %s is a StatusNet sitename.
|
// TRANS: Option in drop-down of potential addressees.
|
||||||
$choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name'));
|
// TRANS: %s is a StatusNet sitename.
|
||||||
|
$choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name'));
|
||||||
|
}
|
||||||
|
|
||||||
if (!common_config('site', 'private')) {
|
if (!common_config('site', 'private')) {
|
||||||
// TRANS: Option in drop-down of potential addressees.
|
// TRANS: Option in drop-down of potential addressees.
|
||||||
|
Loading…
Reference in New Issue
Block a user