summaryrefslogtreecommitdiff
path: root/app/Controller/Column.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-24 16:02:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-24 16:02:25 -0400
commiteeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch)
tree511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Controller/Column.php
parent65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff)
Helpers refactoring
Diffstat (limited to 'app/Controller/Column.php')
-rw-r--r--app/Controller/Column.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controller/Column.php b/app/Controller/Column.php
index 69ca5dd2..89c495a6 100644
--- a/app/Controller/Column.php
+++ b/app/Controller/Column.php
@@ -57,7 +57,7 @@ class Column extends Base
if ($this->board->addColumn($project['id'], $data['title'], $data['task_limit'], $data['description'])) {
$this->session->flash(t('Board updated successfully.'));
- $this->response->redirect($this->helper->url('column', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])));
}
else {
$this->session->flashError(t('Unable to update this board.'));
@@ -102,7 +102,7 @@ class Column extends Base
if ($this->board->updateColumn($values['id'], $values['title'], $values['task_limit'], $values['description'])) {
$this->session->flash(t('Board updated successfully.'));
- $this->response->redirect($this->helper->url('column', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])));
}
else {
$this->session->flashError(t('Unable to update this board.'));
@@ -128,7 +128,7 @@ class Column extends Base
$this->board->{'move'.$direction}($project['id'], $column_id);
}
- $this->response->redirect($this->helper->url('column', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])));
}
/**
@@ -165,6 +165,6 @@ class Column extends Base
$this->session->flashError(t('Unable to remove this column.'));
}
- $this->response->redirect($this->helper->url('column', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])));
}
}