From: Evan Prodromou Date: Wed, 20 Apr 2011 14:57:46 +0000 (-0400) Subject: Fixup rendering of event and RSVP X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e4029ecb60e6ef2e0167e6b410adc0fadefdf76;p=quix0rs-gnu-social.git Fixup rendering of event and RSVP --- diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 0cb62cf59e..a9644e7a2c 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -296,6 +296,7 @@ class EventPlugin extends MicroappPlugin return new RSVPListItem($nli); break; } + return null; } diff --git a/plugins/Event/eventlistitem.php b/plugins/Event/eventlistitem.php index 3d2d3ecd8f..a6bfc13cbd 100644 --- a/plugins/Event/eventlistitem.php +++ b/plugins/Event/eventlistitem.php @@ -55,7 +55,7 @@ class EventListItem extends NoticeListItemAdapter $this->nli->out->elementEnd('div'); } - function showEventNotice($notice, $out) + function showContent($notice, $out) { $profile = $notice->getProfile(); $event = Happening::fromNotice($notice); diff --git a/plugins/Event/rsvplistitem.php b/plugins/Event/rsvplistitem.php index 4ca36a9447..4d7d785e88 100644 --- a/plugins/Event/rsvplistitem.php +++ b/plugins/Event/rsvplistitem.php @@ -47,7 +47,15 @@ if (!defined('STATUSNET')) { class RSVPListItem extends NoticeListItemAdapter { - function showRSVPNotice($notice, $out) + function showNotice() + { + $this->nli->out->elementStart('div', 'entry-title'); + $this->nli->showAuthor(); + $this->showContent(); + $this->nli->out->elementEnd('div'); + } + + function showContent($notice, $out) { $rsvp = RSVP::fromNotice($notice);