From: Mikael Nordfeldth Date: Sun, 11 Oct 2015 20:08:28 +0000 (+0200) Subject: Woops, put the bookmark get* functions in the wrong file. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e588bdeca1ce444646426e411001244967b3558;p=quix0rs-gnu-social.git Woops, put the bookmark get* functions in the wrong file. --- 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 *