show event as deleted

This commit is contained in:
Evan Prodromou 2011-04-08 12:14:05 -04:00
parent 731bdab804
commit 50c4731d20

View File

@ -326,6 +326,10 @@ class EventPlugin extends MicroappPlugin
{ {
$rsvp = RSVP::fromNotice($notice); $rsvp = RSVP::fromNotice($notice);
if (empty($rsvp)) {
$out->element('p', null, _('Deleted.'));
}
$out->elementStart('div', 'rsvp'); $out->elementStart('div', 'rsvp');
$out->raw($rsvp->asHTML()); $out->raw($rsvp->asHTML());
$out->elementEnd('div'); $out->elementEnd('div');
@ -337,8 +341,9 @@ class EventPlugin extends MicroappPlugin
$profile = $notice->getProfile(); $profile = $notice->getProfile();
$event = Happening::fromNotice($notice); $event = Happening::fromNotice($notice);
assert(!empty($event)); if (empty($event)) {
assert(!empty($profile)); $out->element('p', null, _('Deleted.'));
}
$out->elementStart('div', 'vevent event'); // VEVENT IN $out->elementStart('div', 'vevent event'); // VEVENT IN