From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- app/Controller/Auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controller/Auth.php') 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')); } } -- cgit v1.2.3