From 0e588bdeca1ce444646426e411001244967b3558 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 11 Oct 2015 22:08:28 +0200 Subject: [PATCH] Woops, put the bookmark get* functions in the wrong file. --- plugins/Bookmark/BookmarkPlugin.php | 18 ------------------ plugins/Bookmark/classes/Bookmark.php | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index 1f8b548d1f..1f4f8d9621 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -429,24 +429,6 @@ class BookmarkPlugin extends MicroAppPlugin $nli->out->elementEnd('div'); } - public function getDescription() - { - return $this->description; - } - - public function getTitle() - { - return $this->title; - } - - public function getUrl() - { - if (empty($this->url)) { - throw new InvalidUrlException($this->url); - } - return $this->url; - } - protected function showNoticeContent(Notice $stored, HTMLOutputter $out, Profile $scoped=null) { $nb = Bookmark::fromStored($stored); diff --git a/plugins/Bookmark/classes/Bookmark.php b/plugins/Bookmark/classes/Bookmark.php index 95518631a3..87e81240d0 100644 --- a/plugins/Bookmark/classes/Bookmark.php +++ b/plugins/Bookmark/classes/Bookmark.php @@ -97,6 +97,24 @@ class Bookmark extends Managed_DataObject return self::getByPK(array('uri' => $stored->getUri())); } + public function getDescription() + { + return $this->description; + } + + public function getTitle() + { + return $this->title; + } + + public function getUrl() + { + if (empty($this->url)) { + throw new InvalidUrlException($this->url); + } + return $this->url; + } + /** * Get the bookmark that a user made for an URL * -- 2.39.5