From 21c12bfb323d5b078eb70c20be8ea18be081a936 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 25 Nov 2008 15:52:44 +0000 Subject: Added post-to-google-calendar through Zend (when installed) --- forum/utils/calendar.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'forum/utils/calendar.php') diff --git a/forum/utils/calendar.php b/forum/utils/calendar.php index 84ebe18..1cf8d4a 100644 --- a/forum/utils/calendar.php +++ b/forum/utils/calendar.php @@ -1,6 +1,7 @@ uid); $events->add($event); - $events->write(); + $events->write(); + + if($ZEND_DIR != "") googleCalendarEvent($event); + notify("calendar", "New calendar entry:\n" . $title . "\n" . date("r", $time) . "\n" . $description . "\n" . $FORUM_URL . "/?mode=calendar&date=" . $time); -- cgit v1.2.3