From efb6a7b441dc14227a30b83454e8b47e79274997 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 23 Mar 2011 11:42:52 -0400 Subject: [PATCH] let Inbox class go fingerpokin' in streams --- classes/Inbox.php | 4 ++-- lib/noticestream.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Inbox.php b/classes/Inbox.php index f0f626a24e..feaead249b 100644 --- a/classes/Inbox.php +++ b/classes/Inbox.php @@ -233,7 +233,7 @@ class Inbox extends Memcached_DataObject // Do a bulk lookup for the first $limit items // Fast path when nothing's deleted. $firstChunk = array_slice($ids, 0, $offset + $limit); - $notices = Notice::getStreamByIds($firstChunk); + $notices = NoticeStream::getStreamByIds($firstChunk); assert($notices instanceof ArrayWrapper); $items = $notices->_items; @@ -292,7 +292,7 @@ class Inbox extends Memcached_DataObject // Do a bulk lookup for the first $limit items // Fast path when nothing's deleted. $firstChunk = array_slice($ids, 0, $limit); - $notices = Notice::getStreamByIds($firstChunk); + $notices = NoticeStream::getStreamByIds($firstChunk); $wanted = count($firstChunk); // raw entry count in the inbox up to our $limit if ($notices->N >= $wanted) { diff --git a/lib/noticestream.php b/lib/noticestream.php index 2b6e10f7b9..a96eb53da6 100644 --- a/lib/noticestream.php +++ b/lib/noticestream.php @@ -62,7 +62,7 @@ class NoticeStream { $ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId); - $notices = $this->getStreamByIds($ids); + $notices = self::getStreamByIds($ids); return $notices; } @@ -136,7 +136,7 @@ class NoticeStream return $ids; } - function getStreamByIds($ids) + static function getStreamByIds($ids) { $cache = Cache::instance(); -- 2.39.5