summaryrefslogtreecommitdiffstats
path: root/apps/calendar
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
parent8dd2f463f826d44299770919b7e9be21d83075f7 (diff)
downloadnextcloud-server-c65e4176662aa989e1444c3c584a9d7846469262.tar.gz
nextcloud-server-c65e4176662aa989e1444c3c584a9d7846469262.zip
Use parse function in Calendar_Object
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/ajax/editevent.php2
-rw-r--r--apps/calendar/ajax/editeventform.php2
-rw-r--r--apps/calendar/ajax/events.php2
-rw-r--r--apps/calendar/ajax/moveevent.php2
-rw-r--r--apps/calendar/ajax/resizeevent.php2
5 files changed, 5 insertions, 5 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) {
diff --git a/apps/calendar/ajax/editeventform.php b/apps/calendar/ajax/editeventform.php
index 34d6c657cec..e6dc8136601 100644
--- a/apps/calendar/ajax/editeventform.php
+++ b/apps/calendar/ajax/editeventform.php
@@ -26,7 +26,7 @@ if($calendar['userid'] != OC_User::getUser()){
echo $l10n->t('Wrong calendar');
exit;
}
-$object = Sabre_VObject_Reader::read($data['calendardata']);
+$object = OC_Calendar_Object::parse($data['calendardata']);
$vevent = $object->VEVENT;
$dtstart = $vevent->DTSTART;
$dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent);
diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php
index 5c4cced8d20..5ee2ffb6276 100644
--- a/apps/calendar/ajax/events.php
+++ b/apps/calendar/ajax/events.php
@@ -21,7 +21,7 @@ $return = array();
foreach($events as $event)
{
$return_event = array();
- $object = Sabre_VObject_Reader::read($event['calendardata']);
+ $object = OC_Calendar_Object::parse($event['calendardata']);
$vevent = $object->VEVENT;
$dtstart = $vevent->DTSTART;
$dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent);
diff --git a/apps/calendar/ajax/moveevent.php b/apps/calendar/ajax/moveevent.php
index 1fef1c5b200..834a454fca2 100644
--- a/apps/calendar/ajax/moveevent.php
+++ b/apps/calendar/ajax/moveevent.php
@@ -22,7 +22,7 @@ $delta = new DateInterval('P0D');
$delta->d = $_POST['dayDelta'];
$delta->i = $_POST['minuteDelta'];
-$vcalendar = Sabre_VObject_Reader::read($data['calendardata']);
+$vcalendar = OC_Calendar_Object::parse($data['calendardata']);
$vevent = $vcalendar->VEVENT;
$dtstart = $vevent->DTSTART;
diff --git a/apps/calendar/ajax/resizeevent.php b/apps/calendar/ajax/resizeevent.php
index 3a2bf87afd9..639ef91ee7c 100644
--- a/apps/calendar/ajax/resizeevent.php
+++ b/apps/calendar/ajax/resizeevent.php
@@ -22,7 +22,7 @@ $delta = new DateInterval('P0D');
$delta->d = $_POST['dayDelta'];
$delta->i = $_POST['minuteDelta'];
-$vcalendar = Sabre_VObject_Reader::read($data['calendardata']);
+$vcalendar = OC_Calendar_Object::parse($data['calendardata']);
$vevent = $vcalendar->VEVENT;
$dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent);