allow passing a profile to inboxnoticestream

This commit is contained in:
Evan Prodromou 2011-04-07 15:39:23 -04:00
parent fbc18a3c67
commit 684d0a386d
1 changed files with 2 additions and 2 deletions

View File

@ -52,11 +52,11 @@ class InboxNoticeStream extends ScopingNoticeStream
*
* @param User $user User to get a stream for
*/
function __construct($user)
function __construct($user, $profile = null)
{
// Note: we don't use CachingNoticeStream since RawInboxNoticeStream
// uses Inbox::staticGet(), which is cached.
parent::__construct(new RawInboxNoticeStream($user));
parent::__construct(new RawInboxNoticeStream($user), $profile);
}
}