From: Evan Prodromou Date: Wed, 20 Apr 2011 14:59:31 +0000 (-0400) Subject: Correct formats for event list items X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e6cffe4cf909ed69cd4297a95e52c6f42e78b22;p=quix0rs-gnu-social.git Correct formats for event list items --- 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)) {