]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Correct formats for event list items
authorEvan Prodromou <evan@status.net>
Wed, 20 Apr 2011 14:59:31 +0000 (10:59 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 20 Apr 2011 14:59:31 +0000 (10:59 -0400)
plugins/Event/eventlistitem.php
plugins/Event/rsvplistitem.php

index a6bfc13cbd727dd5d20b37d2d82ebcf9a723cdcb..fa44223772dd6e259d95633152ed9102a7807839 100644 (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);
 
index 4d7d785e885308e7102d497600b3427678b3874b..7423c1c7cb26c22681b1ca4cc1780e7647e70e51 100644 (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)) {