Managed_DataObject now has listGet for all classes

This commit is contained in:
Mikael Nordfeldth
2013-08-18 21:02:33 +02:00
parent 923f16abe5
commit 97ce71e55d
6 changed files with 34 additions and 16 deletions

View File

@@ -376,7 +376,7 @@ class UserActivityStream extends AtomUserNoticeFeed
function getMessagesTo()
{
$msgMap = Memcached_DataObject::listGet('Message', 'to_profile', array($this->user->id));
$msgMap = Message::listGet('to_profile', array($this->user->id));
$messages = $msgMap[$this->user->id];
@@ -389,7 +389,7 @@ class UserActivityStream extends AtomUserNoticeFeed
function getMessagesFrom()
{
$msgMap = Memcached_DataObject::listGet('Message', 'from_profile', array($this->user->id));
$msgMap = Message::listGet('from_profile', array($this->user->id));
$messages = $msgMap[$this->user->id];