forked from GNUsocial/gnu-social
RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86
This commit is contained in:
parent
e4d432295d
commit
7845a09b34
@ -410,7 +410,7 @@ class EventPlugin extends ActivityVerbHandlerPlugin
|
||||
protected function showRSVP(Notice $stored, HTMLOutputter $out, Profile $scoped=null)
|
||||
{
|
||||
try {
|
||||
$rsvp = RSVP::fromStored($stored);
|
||||
$rsvp = RSVP::fromStored($stored)->asHTML();
|
||||
} catch (NoResultException $e) {
|
||||
// TRANS: Content for a deleted RSVP list item (RSVP stands for "please respond").
|
||||
$out->element('p', null, _m('Deleted.'));
|
||||
@ -418,7 +418,7 @@ class EventPlugin extends ActivityVerbHandlerPlugin
|
||||
}
|
||||
|
||||
$out->elementStart('div', 'rsvp');
|
||||
$out->raw($rsvp->asHTML());
|
||||
$out->raw($rsvp);
|
||||
$out->elementEnd('div');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user