_m('Description of the event.'));
$this->unli();
+ $this->li();
+ $toWidget = new ToSelector($this->out,
+ common_current_user(),
+ null);
+ $toWidget->show();
+ $this->unli();
+
$this->out->elementEnd('ul');
$this->out->elementEnd('fieldset');
}
throw new ClientException(_m('Event must have an end time.'));
}
+ $options = array();
+
+ // Does the heavy-lifting for getting "To:" information
+
+ ToSelector::fillOptions($this, $options);
+
$profile = $this->user->getProfile();
$saved = Happening::saveNew($profile,
$this->title,
$this->location,
$this->description,
- $this->url);
+ $this->url,
+ $options);
$event = Happening::fromNotice($saved);