diff options
author | Zach Copley <zach@status.net> | 2009-09-24 15:10:55 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-09-24 15:10:55 -0700 |
commit | e566219299b339fb649eb8a21bd37e8c93844375 (patch) | |
tree | 803b3e95e3ab72608fadb3671b83415667157640 /actions/publicrss.php | |
parent | 93b7e601156d88399b57ef9cd2962a22350270a8 (diff) |
Output If-Modified-Since header for all RSS 1.0 feeds (again)
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; } |