From 7e6cffe4cf909ed69cd4297a95e52c6f42e78b22 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 20 Apr 2011 10:59:31 -0400 Subject: [PATCH] Correct formats for event list items --- plugins/Event/eventlistitem.php | 5 ++++- plugins/Event/rsvplistitem.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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)) { -- 2.39.5