]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/allrss.php
Ticket 1404. Showing the link to the members list page.
[quix0rs-gnu-social.git] / actions / allrss.php
index e357d12f02a917de824159d7188ccc01e76ba944..45f3946a61cfda010765ae3b54ca94360dc4d0a7 100644 (file)
@@ -49,16 +49,18 @@ require_once INSTALLDIR.'/lib/rssaction.php';
  */
 class AllrssAction extends Rss10Action
 {
-
     var $user = null;
 
     /**
      * Initialization.
-     * 
+     *
+     * @param array $args Web and URL arguments
+     *
      * @return boolean false if user doesn't exist
      */
-    function init()
+    function prepare($args)
     {
+        parent::prepare($args);
         $nickname   = $this->trimmed('nickname');
         $this->user = User::staticGet('nickname', $nickname);
 
@@ -79,9 +81,10 @@ class AllrssAction extends Rss10Action
      */
     function getNotices($limit=0)
     {
-        $user   = $this->user;
-        $notice = $user->noticesWithFriends(0, $limit);
-                                            
+        $user    = $this->user;
+        $notice  = $user->noticesWithFriends(0, $limit);
+        $notices = array();
+
         while ($notice->fetch()) {
             $notices[] = clone($notice);
         }
@@ -104,7 +107,8 @@ class AllrssAction extends Rss10Action
                    'link' => common_local_url('all',
                                              array('nickname' =>
                                                    $user->nickname)),
-                   'description' => sprintf(_('Feed for friends of %s'), $user->nickname));
+                   'description' => sprintf(_('Feed for friends of %s'),
+                                            $user->nickname));
         return $c;
     }