git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit a838c909 authored by mmn's avatar mmn

Only show "public:site" in ToSelector if notice/allowprivate is true

parent f68d1ade
......@@ -119,9 +119,11 @@ class ToSelector extends Widget
// Reverse so we can add entries at the end (can't unshift with a key)
$choices = array_reverse($choices);
// TRANS: Option in drop-down of potential addressees.
// TRANS: %s is a StatusNet sitename.
$choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name'));
if (common_config('notice', 'allowprivate')) {
// TRANS: Option in drop-down of potential addressees.
// TRANS: %s is a StatusNet sitename.
$choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name'));
}
if (!common_config('site', 'private')) {
// TRANS: Option in drop-down of potential addressees.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment