summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/editevent.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-11-09 22:16:24 +0100
committerBart Visscher <bartv@thisnet.nl>2011-11-09 22:16:24 +0100
commitc65e4176662aa989e1444c3c584a9d7846469262 (patch)
treed085fd566712a4f8d150a2f0df5fb3ea89612bdd /apps/calendar/ajax/editevent.php
parent8dd2f463f826d44299770919b7e9be21d83075f7 (diff)
downloadnextcloud-server-c65e4176662aa989e1444c3c584a9d7846469262.tar.gz
nextcloud-server-c65e4176662aa989e1444c3c584a9d7846469262.zip
Use parse function in Calendar_Object
Diffstat (limited to 'apps/calendar/ajax/editevent.php')
-rw-r--r--apps/calendar/ajax/editevent.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/ajax/editevent.php b/apps/calendar/ajax/editevent.php
index 3abf4de98b3..a60b0946ad2 100644
--- a/apps/calendar/ajax/editevent.php
+++ b/apps/calendar/ajax/editevent.php
@@ -34,7 +34,7 @@ if($errarr){
OC_JSON::error();
exit;
}
- $vcalendar = Sabre_VObject_Reader::read($data['calendardata']);
+ $vcalendar = OC_Calendar_Object::parse($data['calendardata']);
OC_Calendar_Object::updateVCalendarFromRequest($_POST, $vcalendar);
$result = OC_Calendar_Object::edit($id, $vcalendar->serialize());
if ($data['calendarid'] != $cal) {