add toselector to bookmark
This commit is contained in:
		| @@ -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'); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user