From: Jan Schneider Date: Wed, 11 Aug 2010 21:07:32 +0000 (+0200) Subject: Revert "Remove unnecessary wrapper." X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3a05397cdbb8430baabd9e47c31b621870e1b896;p=horde.git Revert "Remove unnecessary wrapper." This reverts commit c7375893b2adaf104954d3513a3cc48a17da9fb1. Conflicts: kronolith/lib/Driver/Sql.php --- diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index d39cc1d8b..9a9488314 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -590,7 +590,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver } /* Notify users about the changed event. */ - Kronolith::sendNotification($event, 'edit'); + $this->_handleNotifications($event, 'edit'); return $event->id; } @@ -649,7 +649,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver } /* Notify users about the new event. */ - Kronolith::sendNotification($event, 'add'); + $this->_handleNotifications($event, 'add'); return $event->id; } @@ -695,6 +695,11 @@ class Kronolith_Driver_Sql extends Kronolith_Driver $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. * @@ -809,7 +814,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver /* 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