summaryrefslogtreecommitdiff
path: root/actions/publicrss.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-09-24 15:10:55 -0700
committerZach Copley <zach@status.net>2009-09-24 15:10:55 -0700
commite566219299b339fb649eb8a21bd37e8c93844375 (patch)
tree803b3e95e3ab72608fadb3671b83415667157640 /actions/publicrss.php
parent93b7e601156d88399b57ef9cd2962a22350270a8 (diff)
Output If-Modified-Since header for all RSS 1.0 feeds (again)
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;
}