From 3edc200b26c39572cabc211773828b869711c55d Mon Sep 17 00:00:00 2001 From: chimo Date: Sun, 17 Aug 2014 13:39:19 -0400 Subject: [PATCH] PollListItem: Use showNotice args --- plugins/Poll/lib/polllistitem.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/Poll/lib/polllistitem.php b/plugins/Poll/lib/polllistitem.php index 95f3f47465..875fa9c7d9 100644 --- a/plugins/Poll/lib/polllistitem.php +++ b/plugins/Poll/lib/polllistitem.php @@ -51,11 +51,8 @@ class PollListItem extends NoticeListItemAdapter const POLL_OBJECT = 'http://activityschema.org/object/poll'; const POLL_RESPONSE_OBJECT = 'http://activityschema.org/object/poll-response'; - function showNotice() + function showNotice(Notice $notice, $out) { - $notice = $this->nli->notice; - $out = $this->nli->out; - switch ($notice->object_type) { case self::POLL_OBJECT: return $this->showNoticePoll($notice, $out);