diff options
author | Zach Copley <zach@status.net> | 2009-09-25 16:59:51 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-09-25 16:59:51 -0700 |
commit | ccc7caf932735a5ba245db5df36615b02e0af9e3 (patch) | |
tree | d5ed728d8d67e3e327ecccd942a063564da36520 /actions/publicrss.php | |
parent | de5ff19713a990af197330dd8e4314de465ffe76 (diff) | |
parent | 150cf8c045e8e091a70440d1b833fa19aaf31419 (diff) |
Merge branch 'refactor-api' of git@gitorious.org:~zcopley/statusnet/zcopleys-clone into refactor-api
Diffstat (limited to 'actions/publicrss.php')
-rw-r--r-- | actions/publicrss.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/actions/publicrss.php b/actions/publicrss.php index 593888b9f..0c5d061cb 100644 --- a/actions/publicrss.php +++ b/actions/publicrss.php @@ -50,8 +50,22 @@ require_once INSTALLDIR.'/lib/rssaction.php'; class PublicrssAction extends Rss10Action { /** + * Read arguments and initialize members + * + * @param array $args Arguments from $_REQUEST + * @return boolean success + */ + + function prepare($args) + { + parent::prepare($args); + $this->notices = $this->getNotices($this->limit); + return true; + } + + /** * Initialization. - * + * * @return boolean true */ function init() @@ -73,7 +87,7 @@ class PublicrssAction extends Rss10Action while ($notice->fetch()) { $notices[] = clone($notice); } - + return $notices; } |