]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bug 1997: notice search rss utter failure
authorBrion Vibber <brion@pobox.com>
Fri, 20 Nov 2009 22:52:29 +0000 (14:52 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 20 Nov 2009 22:52:29 +0000 (14:52 -0800)
Since commit c4072ef7c930b82b74f8e90f6554974b761c686c in March there's no longer an automatic run of $this->getNotices() from RssAction parent class; added to the subclass.

It might make sense to put it back in the parent class, but of course only if those dupe calls can be resolved.

actions/noticesearchrss.php

index 18f07f85586b1b35404e549583e73d7db8eb0060..a59e7b99becfdb54b3fa2ca18476a7fee2b6b06f 100644 (file)
@@ -53,6 +53,13 @@ class NoticesearchrssAction extends Rss10Action
     {
         return true;
     }
+    
+    function prepare($args)
+    {
+        parent::prepare($args);
+        $this->notices = $this->getNotices();
+        return true;
+    }
 
     function getNotices($limit=0)
     {