summaryrefslogtreecommitdiff
path: root/app/Controller/Auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Auth.php')
-rw-r--r--app/Controller/Auth.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php
index c1859304..24e6e242 100644
--- a/app/Controller/Auth.php
+++ b/app/Controller/Auth.php
@@ -18,7 +18,7 @@ class Auth extends Base
public function login(array $values = array(), array $errors = array())
{
if ($this->userSession->isLogged()) {
- $this->response->redirect($this->helper->url('app', 'index'));
+ $this->response->redirect($this->helper->url->to('app', 'index'));
}
$this->response->html($this->template->layout('auth/index', array(
@@ -47,7 +47,7 @@ class Auth extends Base
$this->response->redirect('?'.urldecode($redirect_query));
}
- $this->response->redirect($this->helper->url('app', 'index'));
+ $this->response->redirect($this->helper->url->to('app', 'index'));
}
$this->login($values, $errors);
@@ -62,6 +62,6 @@ class Auth extends Base
{
$this->authentication->backend('rememberMe')->destroy($this->userSession->getId());
$this->session->close();
- $this->response->redirect($this->helper->url('auth', 'login'));
+ $this->response->redirect($this->helper->url->to('auth', 'login'));
}
}