From 5f96af82f26967f4614b89322a82a59cb48bd2a3 Mon Sep 17 00:00:00 2001
From: Frédéric Guillot <fred@kanboard.net>
Date: Sat, 20 Sep 2014 11:58:27 +0200
Subject: Split Task model into smaller classes

---
 kanboard | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'kanboard')

diff --git a/kanboard b/kanboard
index 2c3ee7a9..d9c932f2 100755
--- a/kanboard
+++ b/kanboard
@@ -8,6 +8,7 @@ use Core\Tool;
 use Core\Translator;
 use Model\Config;
 use Model\Task;
+use Model\TaskExport;
 use Model\Notification;
 
 $config = new Config($registry);
@@ -40,8 +41,8 @@ $cli->register('export-csv', function() use ($cli, $registry) {
     $start_date = $GLOBALS['argv'][3];
     $end_date = $GLOBALS['argv'][4];
 
-    $taskModel = new Task($registry);
-    $data = $taskModel->export($project_id, $start_date, $end_date);
+    $taskExport = new TaskExport($registry);
+    $data = $taskExport->export($project_id, $start_date, $end_date);
 
     if (is_array($data)) {
         Tool::csv($data);
-- 
cgit v1.2.3