diff --git a/plugins/Event/eventlistitem.php b/plugins/Event/eventlistitem.php index a6bfc13cbd..fa44223772 100644 --- a/plugins/Event/eventlistitem.php +++ b/plugins/Event/eventlistitem.php @@ -55,8 +55,11 @@ class EventListItem extends NoticeListItemAdapter $this->nli->out->elementEnd('div'); } - function showContent($notice, $out) + function showContent() { + $notice = $this->nli->notice; + $out = $this->nli->out; + $profile = $notice->getProfile(); $event = Happening::fromNotice($notice); diff --git a/plugins/Event/rsvplistitem.php b/plugins/Event/rsvplistitem.php index 4d7d785e88..7423c1c7cb 100644 --- a/plugins/Event/rsvplistitem.php +++ b/plugins/Event/rsvplistitem.php @@ -55,8 +55,11 @@ class RSVPListItem extends NoticeListItemAdapter $this->nli->out->elementEnd('div'); } - function showContent($notice, $out) + function showContent() { + $notice = $this->nli->notice; + $out = $this->nli->out; + $rsvp = RSVP::fromNotice($notice); if (empty($rsvp)) {