From 533bec7aea4e4aa5678a11ca7d99584217b56dfc Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 1 Mar 2009 15:01:06 +0100 Subject: [PATCH] Nuke BC stuff. --- kronolith/lib/Kronolith.php | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index e885e67d0..2cea217a5 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -656,31 +656,7 @@ class Kronolith 'mday' => $endDate->mday + 1, 'year' => $endDate->year)); foreach ($apis as $api => $categories) { - if (!$registry->hasMethod($api . '/listTimeObjects')) { - /* Backwards compatibility with versions of Nag - * without the listTimeObjects API call. */ - if ($api == 'tasks' && $registry->hasMethod('tasks/listTasks')) { - $taskList = $registry->call('tasks/listTasks'); - if (is_a($taskList, 'PEAR_Error')) { - continue; - } - - $eventsList = array(); - foreach ($taskList as $task) { - if (!$task['due'] && !empty($task['completed'])) { - continue; - } - $eventsList[$task['task_id']] = array( - 'id' => $task['task_id'], - 'title' => sprintf(_("Due: %s"), $task['name']), - 'description' => $task['desc'], - 'start' => $task['due'], - 'end' => $task['due'], - 'params' => array('task' => $task['task_id'], - 'tasklist' => $task['tasklist_id'])); - } - } - } else { + if ($registry->hasMethod($api . '/listTimeObjects')) { $eventsList = $registry->call($api . '/listTimeObjects', array($categories, $startDate, $endDate)); if (is_a($eventsList, 'PEAR_Error')) { $GLOBALS['notification']->push($eventsList); -- 2.11.0