]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/showbookmark.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / Bookmark / showbookmark.php
index 40005c087f4edaa52f9da8f9216e81373bd2b821..1c562d52a8503e28e3f00aee9aec05ea4e455375 100644 (file)
@@ -50,17 +50,16 @@ class ShowbookmarkAction extends ShownoticeAction
 
     function getNotice()
     {
-
         $this->id = $this->trimmed('id');
 
-        $this->bookmark = Bookmark::staticGet('id', $this->id);
+        $this->bookmark = Bookmark::getKV('id', $this->id);
 
         if (empty($this->bookmark)) {
             // TRANS: Client exception thrown when referring to a non-existing bookmark.
             throw new ClientException(_m('No such bookmark.'), 404);
         }
 
-        $notice = Notice::staticGet('uri', $this->bookmark->uri);
+        $notice = Notice::getKV('uri', $this->bookmark->uri);
 
         if (empty($notice)) {
             // Did we used to have it, and it got deleted?
@@ -82,7 +81,7 @@ class ShowbookmarkAction extends ShownoticeAction
     {
         // TRANS: Title for bookmark.
         // TRANS: %1$s is a user nickname, %2$s is a bookmark title.
-        return sprintf(_('%1$s\'s bookmark for "%2$s"'),
+        return sprintf(_m('%1$s\'s bookmark for "%2$s"'),
                        $this->user->nickname,
                        $this->bookmark->title);
     }