add toselector to bookmark

This commit is contained in:
Evan Prodromou 2011-04-05 11:18:25 -04:00
parent fff66e1ebb
commit c0f63c9a69
2 changed files with 14 additions and 4 deletions

View File

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

View File

@ -137,12 +137,16 @@ class NewbookmarkAction extends Action
throw new ClientException(_m('Bookmark must have an URL.'));
}
$options = array();
ToSelector::fillOptions($this, $options);
$saved = Bookmark::saveNew($this->user->getProfile(),
$this->title,
$this->url,
$this->tags,
$this->description);
$this->title,
$this->url,
$this->tags,
$this->description,
$options);
} catch (ClientException $ce) {
$this->error = $ce->getMessage();