X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FEvent%2Factions%2Fcancelrsvp.php;h=5fe95358c369bc9c4c1b3a68acffa335239dd218;hb=3326b7b850f538f0e3c2c7969c5e566e2a374ffb;hp=83f6a73ae07035f8cf6dd557ad555a0ac153dd4f;hpb=89d3d9b2cef52efe054128f7f1f457ee260cee61;p=quix0rs-gnu-social.git diff --git a/plugins/Event/actions/cancelrsvp.php b/plugins/Event/actions/cancelrsvp.php index 83f6a73ae0..5fe95358c3 100644 --- a/plugins/Event/actions/cancelrsvp.php +++ b/plugins/Event/actions/cancelrsvp.php @@ -89,7 +89,7 @@ class CancelrsvpAction extends Action throw new ClientException(_m('No such RSVP.')); } - $this->event = Happening::getKV('id', $this->rsvp->event_id); + $this->event = Happening::getKV('uri', $this->rsvp->event_uri); if (empty($this->event)) { // TRANS: Client exception thrown when referring to a non-existing event. @@ -137,10 +137,10 @@ class CancelrsvpAction extends Action $notice = $this->rsvp->getNotice(); // NB: this will delete the rsvp, too if (!empty($notice)) { - common_log(LOG_DEBUG, "Deleting notice..."); + common_debug("Deleting notice..."); $notice->deleteAs($this->scoped); } else { - common_log(LOG_DEBUG, "Deleting RSVP alone..."); + common_debug("Deleting RSVP alone..."); $this->rsvp->delete(); } } catch (ClientException $ce) { @@ -190,7 +190,7 @@ class CancelrsvpAction extends Action * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { if ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') {