From 8b54f28330dd44fa3d6f5850c314401619fb1577 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 10 Apr 2011 20:16:14 -0400 Subject: [PATCH] getNotices() takes optional last 2 params --- lib/filteringnoticestream.php | 2 +- lib/noticestream.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filteringnoticestream.php b/lib/filteringnoticestream.php index 96b9432fc1..f412211074 100644 --- a/lib/filteringnoticestream.php +++ b/lib/filteringnoticestream.php @@ -56,7 +56,7 @@ abstract class FilteringNoticeStream extends NoticeStream abstract function filter($notice); - function getNotices($offset, $limit, $sinceId, $maxId) + function getNotices($offset, $limit, $sinceId=null, $maxId=null) { // "offset" is virtual; we have to get a lot $total = $offset + $limit; diff --git a/lib/noticestream.php b/lib/noticestream.php index 025138be4d..be28aa6186 100644 --- a/lib/noticestream.php +++ b/lib/noticestream.php @@ -48,7 +48,7 @@ abstract class NoticeStream { abstract function getNoticeIds($offset, $limit, $since_id, $max_id); - function getNotices($offset, $limit, $sinceId, $maxId) + function getNotices($offset, $limit, $sinceId = null, $maxId = null) { $ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId); -- 2.39.5