From f38dcc0ee0fd017fba1e8fa2fa6fd9590328d391 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 16 Dec 2009 15:16:02 -0500 Subject: [PATCH] Would help to actually save the location data for new events... --- kronolith/lib/Driver/Sql.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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')) { -- 2.11.0