From 85d54cbdb7be522a1a6afef6d29a3370ac37b17d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 18 Dec 2010 02:36:13 -0500 Subject: [PATCH] save title and description of bookmark --- plugins/Bookmark/BookmarkPlugin.php | 7 ++++++- plugins/Bookmark/newbookmark.php | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) 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(); } -- 2.39.5