From: chimo Date: Sun, 17 Aug 2014 17:39:19 +0000 (-0400) Subject: PollListItem: Use showNotice args X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3edc200b26c39572cabc211773828b869711c55d;p=quix0rs-gnu-social.git PollListItem: Use showNotice args --- 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);