false,
$default);
+ $this->out->elementStart('span', 'checkbox-wrapper');
$this->out->checkbox('notice_private',
// TRANS: Checkbox label in widget for selecting potential addressees to mark the notice private.
- _('Private'),
+ _('Private?'),
$this->private);
+ $this->out->elementEnd('span');
}
static function fillOptions($action, &$options)
$toArg = $action->trimmed('notice_to');
$private = $action->boolean('notice_private');
+ if (empty($toArg)) {
+ return;
+ }
+
list($prefix, $value) = explode(':', $toArg);
switch ($prefix) {
case 'group':
}
break;
case 'profile':
- $profile = Profile::staticGet('id', $value);
- $options['replies'] = $profile->getUri();
+ $profile = Profile::getKV('id', $value);
+ $options['replies'] = array($profile->getUri());
if ($private) {
$options['scope'] = Notice::ADDRESSEE_SCOPE;
}