From: Michael J. Rubinsky Date: Wed, 16 Dec 2009 20:16:02 +0000 (-0500) Subject: Would help to actually save the location data for new events... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f38dcc0ee0fd017fba1e8fa2fa6fd9590328d391;p=horde.git Would help to actually save the location data for new events... --- diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index a43dadf96..0623ebbc5 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -647,6 +647,16 @@ class Kronolith_Driver_Sql extends Kronolith_Driver $tagger = Kronolith::getTagger(); $tagger->tag($event->uid, $event->tags, 'event'); + /* Update Geolocation */ + if ($gDriver = Kronolith::getGeoDriver()) { + try { + $gDriver->setLocation($event->id, $event->geoLocation); + } catch (Horde_Exception $e) { + Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR); + return new PEAR_Error($e->getMessage()); + } + } + /* Notify users about the new event. */ $result = Kronolith::sendNotification($event, 'add'); if (is_a($result, 'PEAR_Error')) {