]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/actions/showfavorites.php
Added more checked type-hints.
[quix0rs-gnu-social.git] / plugins / Favorite / actions / showfavorites.php
index 00622e94289d2e03588fce890874438cd24696d4..0734ab98657d3647a27da1c134b636a1fa46f20a 100644 (file)
@@ -130,8 +130,8 @@ class ShowfavoritesAction extends Action
         }
 
         if($this->page > 1 && $this->notice->N == 0){
-            // TRANS: Server error when page not found (404)
-            $this->serverError(_('No such page.'),$code=404);
+            // TRANS: Client error when page not found (404)
+            $this->clientError(_('No such page.'), 404);
         }
 
         return true;
@@ -245,7 +245,7 @@ class ShowfavoritesAction extends Action
 
 class FavoritesNoticeList extends NoticeList
 {
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new FavoritesNoticeListItem($notice, $this->out);
     }