diff options
| author | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
| commit | eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch) | |
| tree | 511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Controller/Subtask.php | |
| parent | 65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff) | |
Helpers refactoring
Diffstat (limited to 'app/Controller/Subtask.php')
| -rw-r--r-- | app/Controller/Subtask.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controller/Subtask.php b/app/Controller/Subtask.php index 5eff1575..5baa6004 100644 --- a/app/Controller/Subtask.php +++ b/app/Controller/Subtask.php @@ -252,11 +252,11 @@ class Subtask extends Base { switch ($redirect) { case 'board': - $this->response->redirect($this->helper->url('board', 'show', array('project_id' => $task['project_id']))); + $this->response->redirect($this->helper->url->to('board', 'show', array('project_id' => $task['project_id']))); case 'dashboard': - $this->response->redirect($this->helper->url('app', 'index')); + $this->response->redirect($this->helper->url->to('app', 'index')); default: - $this->response->redirect($this->helper->url('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))); + $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))); } } @@ -275,6 +275,6 @@ class Subtask extends Base $method = $direction === 'up' ? 'moveUp' : 'moveDown'; $this->subtask->$method($task_id, $subtask_id); - $this->response->redirect($this->helper->url('task', 'show', array('project_id' => $project_id, 'task_id' => $task_id)).'#subtasks'); + $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $project_id, 'task_id' => $task_id)).'#subtasks'); } } |
