aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/event/new.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/ajax/event/new.php')
-rwxr-xr-x[-rw-r--r--]apps/calendar/ajax/event/new.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/calendar/ajax/event/new.php b/apps/calendar/ajax/event/new.php
index 5e8c305e97a..72d57be03bf 100644..100755
--- a/apps/calendar/ajax/event/new.php
+++ b/apps/calendar/ajax/event/new.php
@@ -8,18 +8,18 @@
-OC_JSON::checkLoggedIn();
-OC_JSON::checkAppEnabled('calendar');
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('calendar');
$errarr = OC_Calendar_Object::validateRequest($_POST);
if($errarr){
//show validate errors
- OC_JSON::error($errarr);
+ OCP\JSON::error($errarr);
exit;
}else{
$cal = $_POST['calendar'];
$vcalendar = OC_Calendar_Object::createVCalendarFromRequest($_POST);
$result = OC_Calendar_Object::add($cal, $vcalendar->serialize());
- OC_JSON::success();
+ OCP\JSON::success();
}
?>