From e566219299b339fb649eb8a21bd37e8c93844375 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Thu, 24 Sep 2009 15:10:55 -0700 Subject: Output If-Modified-Since header for all RSS 1.0 feeds (again) --- actions/publicrss.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'actions/publicrss.php') diff --git a/actions/publicrss.php b/actions/publicrss.php index 593888b9f..0c5d061cb 100644 --- a/actions/publicrss.php +++ b/actions/publicrss.php @@ -49,9 +49,23 @@ 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; } -- cgit v1.2.3-54-g00ecf