diff options
Diffstat (limited to 'apps/tasks/index.php')
-rw-r--r-- | apps/tasks/index.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/tasks/index.php b/apps/tasks/index.php index f0e6c2e4ddb..3e324e797f8 100644 --- a/apps/tasks/index.php +++ b/apps/tasks/index.php @@ -18,29 +18,6 @@ if( count($calendars) == 0 ) { exit; } -$id = isset( $_GET['id'] ) ? $_GET['id'] : null; - -$tasks = array(); -foreach( $calendars as $calendar ){ - $calendar_tasks = OC_Calendar_Object::all($calendar['id']); - foreach( $calendar_tasks as $task ){ - if($task['objecttype']!='VTODO'){ - continue; - } - if(is_null($task['summary'])){ - continue; - } - $tasks[] = array( 'name' => $task['summary'], 'id' => $task['id'] ); - } -} - -$details = null; -if( !is_null($id) || count($tasks)){ - if(is_null($id)) $id = $tasks[0]['id']; - $task = OC_Calendar_Object::find($id); - $details = Sabre_VObject_Reader::read($task['calendardata'])->VTODO; -} - OC_UTIL::addScript('tasks', 'tasks'); OC_UTIL::addStyle('tasks', 'style'); OC_APP::setActiveNavigationEntry('tasks_index'); @@ -48,8 +25,5 @@ OC_APP::setActiveNavigationEntry('tasks_index'); $l10n = new OC_L10N('tasks'); $priority_options = OC_Task_App::getPriorityOptions(); $output = new OC_Template('tasks', 'tasks', 'user'); -$output->assign('tasks', $tasks); -$output->assign('details', $details); $output->assign('priority_options', $priority_options); -$output->assign('id',$id); $output -> printPage(); |