}
/* Notify users about the changed event. */
- Kronolith::sendNotification($event, 'edit');
+ $this->_handleNotifications($event, 'edit');
return $event->id;
}
}
/* Notify users about the new event. */
- Kronolith::sendNotification($event, 'add');
+ $this->_handleNotifications($event, 'add');
return $id;
}
$tagger->tag($event->uid, $event->tags, $cal->get('owner'), 'event');
}
+ protected function _handleNotifications($event, $action)
+ {
+ Kronolith::sendNotification($event, $action);
+ }
+
/**
* Moves an event to a new calendar.
*
/* Notify about the deleted event. */
if (!$silent) {
- Kronolith::sendNotification($event, 'delete');
+ $this->_handleNotifications($event, 'delete');
}
/* See if this event represents an exception - if so, touch the base