summaryrefslogtreecommitdiff
path: root/actions/publicrss.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-09-25 16:59:51 -0700
committerZach Copley <zach@status.net>2009-09-25 16:59:51 -0700
commitccc7caf932735a5ba245db5df36615b02e0af9e3 (patch)
treed5ed728d8d67e3e327ecccd942a063564da36520 /actions/publicrss.php
parentde5ff19713a990af197330dd8e4314de465ffe76 (diff)
parent150cf8c045e8e091a70440d1b833fa19aaf31419 (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.php18
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;
}