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/Timetableweek.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controller/Timetableweek.php') diff --git a/app/Controller/Timetableweek.php b/app/Controller/Timetableweek.php index 829f4402..b8ce00e7 100644 --- a/app/Controller/Timetableweek.php +++ b/app/Controller/Timetableweek.php @@ -52,7 +52,7 @@ class Timetableweek extends User if ($this->timetableWeek->create($values['user_id'], $values['day'], $values['start'], $values['end'])) { $this->session->flash(t('Time slot created successfully.')); - $this->response->redirect($this->helper->url('timetableweek', 'index', array('user_id' => $values['user_id']))); + $this->response->redirect($this->helper->url->to('timetableweek', 'index', array('user_id' => $values['user_id']))); } else { $this->session->flashError(t('Unable to save this time slot.')); @@ -94,6 +94,6 @@ class Timetableweek extends User $this->session->flash(t('Unable to remove this time slot.')); } - $this->response->redirect($this->helper->url('timetableweek', 'index', array('user_id' => $user['id']))); + $this->response->redirect($this->helper->url->to('timetableweek', 'index', array('user_id' => $user['id']))); } } -- cgit v1.2.3