aboutsummaryrefslogtreecommitdiffstats
path: root/apps/tasks/ajax
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-22 20:11:38 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-22 20:11:38 +0100
commit7f754c02f3728bf8d71e3e61264504c88e92bdd2 (patch)
tree0d841ebfa2df8cb36caffdfaea01a324776e33d2 /apps/tasks/ajax
parent499ec15c26f23ee854a562358c43a11cd7a75e8e (diff)
downloadnextcloud-server-7f754c02f3728bf8d71e3e61264504c88e92bdd2.tar.gz
nextcloud-server-7f754c02f3728bf8d71e3e61264504c88e92bdd2.zip
Change code from using OC_Tasks_VTodo to OC_Tasks_App
Diffstat (limited to 'apps/tasks/ajax')
-rw-r--r--apps/tasks/ajax/addtask.php6
-rw-r--r--apps/tasks/ajax/edittask.php6
-rw-r--r--apps/tasks/ajax/edittaskform.php2
-rw-r--r--apps/tasks/ajax/getdetails.php2
4 files changed, 8 insertions, 8 deletions
diff --git a/apps/tasks/ajax/addtask.php b/apps/tasks/ajax/addtask.php
index d2bd46f56a6..c768d3e7d91 100644
--- a/apps/tasks/ajax/addtask.php
+++ b/apps/tasks/ajax/addtask.php
@@ -14,16 +14,16 @@ if( $calendar === false || $calendar['userid'] != OC_USER::getUser()){
exit();
}
-$errors = OC_Task_VTodo::validateRequest($_POST, $l10n);
+$errors = OC_Task_App::validateRequest($_POST);
if (!empty($errors)) {
OC_JSON::error(array('data' => array( 'errors' => $errors )));
exit();
}
-$vcalendar = OC_Task_VTodo::createVCalendarFromRequest($_POST);
+$vcalendar = OC_Task_App::createVCalendarFromRequest($_POST);
$id = OC_Calendar_Object::add($cid, $vcalendar->serialize());
-$priority_options = OC_Task_VTodo::getPriorityOptions($l10n);
+$priority_options = OC_Task_App::getPriorityOptions();
$tmpl = new OC_Template('tasks','part.details');
$tmpl->assign('priority_options', $priority_options);
$tmpl->assign('details',$vcalendar->VTODO);
diff --git a/apps/tasks/ajax/edittask.php b/apps/tasks/ajax/edittask.php
index 115f2f078ab..edfca33833a 100644
--- a/apps/tasks/ajax/edittask.php
+++ b/apps/tasks/ajax/edittask.php
@@ -20,17 +20,17 @@ if( $calendar === false || $calendar['userid'] != OC_USER::getUser()){
exit();
}
-$errors = OC_Task_VTodo::validateRequest($_POST, $l10n);
+$errors = OC_Task_App::validateRequest($_POST);
if (!empty($errors)) {
OC_JSON::error(array('data' => array( 'errors' => $errors )));
exit();
}
$vcalendar = OC_VObject::parse($task['calendardata']);
-OC_Task_VTodo::updateVCalendarFromRequest($_POST, $vcalendar);
+OC_Task_App::updateVCalendarFromRequest($_POST, $vcalendar);
OC_Calendar_Object::edit($id, $vcalendar->serialize());
-$priority_options = OC_Task_VTodo::getPriorityOptions($l10n);
+$priority_options = OC_Task_App::getPriorityOptions();
$tmpl = new OC_Template('tasks','part.details');
$tmpl->assign('priority_options', $priority_options);
$tmpl->assign('details', $vcalendar->VTODO);
diff --git a/apps/tasks/ajax/edittaskform.php b/apps/tasks/ajax/edittaskform.php
index b309413683c..b9c1f700b61 100644
--- a/apps/tasks/ajax/edittaskform.php
+++ b/apps/tasks/ajax/edittaskform.php
@@ -29,7 +29,7 @@ if (isset($details->CATEGORIES)){
$category_options = OC_Calendar_Object::getCategoryOptions($l10n);
$percent_options = range(0, 100, 10);
-$priority_options = OC_Task_VTodo::getPriorityOptions($l10n);
+$priority_options = OC_Task_App::getPriorityOptions();
$tmpl = new OC_Template('tasks','part.edittaskform');
$tmpl->assign('category_options', $category_options);
diff --git a/apps/tasks/ajax/getdetails.php b/apps/tasks/ajax/getdetails.php
index 222c426d524..2e6e8181f1b 100644
--- a/apps/tasks/ajax/getdetails.php
+++ b/apps/tasks/ajax/getdetails.php
@@ -15,7 +15,7 @@ if (!$details){
exit;
}
-$priority_options = OC_Task_VTodo::getPriorityOptions($l10n);
+$priority_options = OC_Task_App::getPriorityOptions();
$tmpl = new OC_Template('tasks','part.details');
$tmpl->assign('priority_options', $priority_options);
$tmpl->assign('details',$details->VTODO);