From: Evan Prodromou Date: Sat, 18 Dec 2010 07:36:13 +0000 (-0500) Subject: save title and description of bookmark X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=85d54cbdb7be522a1a6afef6d29a3370ac37b17d;p=quix0rs-gnu-social.git save title and description of bookmark --- diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index cf014cc82a..a3067a9eb1 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -66,7 +66,12 @@ class BookmarkPlugin extends Plugin 'integer', null, true, - 'PRI'))); + 'PRI'), + new ColumnDef('title', + 'varchar', + 255), + new ColumnDef('description', + 'text'))); return true; } diff --git a/plugins/Bookmark/newbookmark.php b/plugins/Bookmark/newbookmark.php index 034e73b429..7352b1b952 100644 --- a/plugins/Bookmark/newbookmark.php +++ b/plugins/Bookmark/newbookmark.php @@ -180,7 +180,9 @@ class NewbookmarkAction extends Action if (!empty($saved)) { $nb = new Notice_bookmark(); - $nb->notice_id = $saved->id; + $nb->notice_id = $saved->id; + $nb->title = $this->_title; + $nb->description = $this->_description; $nb->insert(); }