integrated privacy toselector into video plugin. there is a display issue to fix, but it works.

This commit is contained in:
Ian Denhardt 2011-05-24 16:47:59 -04:00
parent fcc3c88c74
commit ec707a7820
2 changed files with 11 additions and 1 deletions

View File

@ -73,7 +73,11 @@ class PostvideoAction extends Action {
$profile = $this->user->getProfile();
$vid = Video::saveNew($profile, $this->url, array());
$options = array();
ToSelector::fillOptions($this, $options);
$vid = Video::saveNew($profile, $this->url, $options);
common_redirect($vid->uri, 303);
}

View File

@ -51,6 +51,12 @@ class VideoForm extends Form
$this->unli();
$this->out->elementEnd('ul');
$toWidget = new ToSelector($this->out,
common_current_user(),
null);
$toWidget->show();
$this->out->elementEnd('fieldset');
}