PollListItem: Use showNotice args

This commit is contained in:
chimo 2014-08-17 13:39:19 -04:00
parent 850d687901
commit 3edc200b26

View File

@ -51,11 +51,8 @@ class PollListItem extends NoticeListItemAdapter
const POLL_OBJECT = 'http://activityschema.org/object/poll'; const POLL_OBJECT = 'http://activityschema.org/object/poll';
const POLL_RESPONSE_OBJECT = 'http://activityschema.org/object/poll-response'; 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) { switch ($notice->object_type) {
case self::POLL_OBJECT: case self::POLL_OBJECT:
return $this->showNoticePoll($notice, $out); return $this->showNoticePoll($notice, $out);