save title and description of bookmark

This commit is contained in:
Evan Prodromou 2010-12-18 02:36:13 -05:00
parent f641034471
commit 85d54cbdb7
2 changed files with 9 additions and 2 deletions

View File

@ -66,7 +66,12 @@ class BookmarkPlugin extends Plugin
'integer',
null,
true,
'PRI')));
'PRI'),
new ColumnDef('title',
'varchar',
255),
new ColumnDef('description',
'text')));
return true;
}

View File

@ -181,6 +181,8 @@ class NewbookmarkAction extends Action
if (!empty($saved)) {
$nb = new Notice_bookmark();
$nb->notice_id = $saved->id;
$nb->title = $this->_title;
$nb->description = $this->_description;
$nb->insert();
}