]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixup rendering of event and RSVP
authorEvan Prodromou <evan@status.net>
Wed, 20 Apr 2011 14:57:46 +0000 (10:57 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 20 Apr 2011 14:57:46 +0000 (10:57 -0400)
plugins/Event/EventPlugin.php
plugins/Event/eventlistitem.php
plugins/Event/rsvplistitem.php

index 0cb62cf59e1ecfad98e43d5e0454d89c5360b851..a9644e7a2ccc12b00ab36569625fbf80226387d3 100644 (file)
@@ -296,6 +296,7 @@ class EventPlugin extends MicroappPlugin
             return new RSVPListItem($nli);
             break;
         }
+        return null;
     }
 
 
index 3d2d3ecd8f0276748ec90f397b20abe5e946102b..a6bfc13cbd727dd5d20b37d2d82ebcf9a723cdcb 100644 (file)
@@ -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);
index 4ca36a94471169754fbc7ae8285bbc0e4c179a73..4d7d785e885308e7102d497600b3427678b3874b 100644 (file)
@@ -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);