Correct formats for event list items

This commit is contained in:
Evan Prodromou 2011-04-20 10:59:31 -04:00
parent 0e4029ecb6
commit 7e6cffe4cf
2 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -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)) {