[NOTICE][UI] Fix bug: Option to message "Everyone at site" when using private instance

This commit is contained in:
Hugo Sales 2020-07-16 22:28:26 +00:00 committed by Diogo Peralta Cordeiro
parent af0ec1380e
commit 58af4799ee

View File

@ -119,7 +119,7 @@ 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);
if (common_config('notice', 'allowprivate')) { if (common_config('site', 'private')) {
// TRANS: Option in drop-down of potential addressees. // TRANS: Option in drop-down of potential addressees.
// TRANS: %s is a StatusNet sitename. // TRANS: %s is a StatusNet sitename.
$choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name')); $choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name'));