diff options
Diffstat (limited to 'apps/calendar/ajax/calendar/delete.php')
-rwxr-xr-x[-rw-r--r--] | apps/calendar/ajax/calendar/delete.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/calendar/ajax/calendar/delete.php b/apps/calendar/ajax/calendar/delete.php index a2f5311731c..a36a0534650 100644..100755 --- a/apps/calendar/ajax/calendar/delete.php +++ b/apps/calendar/ajax/calendar/delete.php @@ -5,17 +5,17 @@ * later. * See the COPYING-README file. */ -require_once('../../../../lib/base.php'); + -OC_JSON::checkLoggedIn(); -OC_JSON::checkAppEnabled('calendar'); +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('calendar'); $cal = $_POST["calendarid"]; $calendar = OC_Calendar_App::getCalendar($cal); $del = OC_Calendar_Calendar::deleteCalendar($cal); if($del == true){ - OC_JSON::success(); + OCP\JSON::success(); }else{ - OC_JSON::error(array('error'=>'dberror')); + OCP\JSON::error(array('error'=>'dberror')); } ?> |