]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Event/showevent.php
updates to make RSVPs work
[quix0rs-gnu-social.git] / plugins / Event / showevent.php
index f8b032c111ac18a831f708c5a7e9d86b4829997f..7fb702f9dbeea5a80dec9d4584fb3f5c8ab2426b 100644 (file)
@@ -64,13 +64,13 @@ class ShoweventAction extends ShownoticeAction
 
         $this->id = $this->trimmed('id');
 
-        $this->event = Event::staticGet('id', $this->id);
+        $this->event = Happening::staticGet('id', $this->id);
 
         if (empty($this->event)) {
             throw new ClientException(_('No such event.'), 404);
         }
 
-        $this->notice = $event->getNotice();
+        $this->notice = $this->event->getNotice();
 
         if (empty($this->notice)) {
             // Did we used to have it, and it got deleted?