From 67b836164997527b91452b19adbcb8aa3c5decf1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 15 May 2016 18:31:47 -0400 Subject: Refactoring: added controlled middleware and changed response class --- app/Controller/WebNotification.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controller/WebNotification.php') diff --git a/app/Controller/WebNotification.php b/app/Controller/WebNotification.php index dca5cb46..a62da0e3 100644 --- a/app/Controller/WebNotification.php +++ b/app/Controller/WebNotification.php @@ -8,7 +8,7 @@ namespace Kanboard\Controller; * @package controller * @author Frederic Guillot */ -class WebNotification extends Base +class WebNotification extends BaseController { /** * Mark all notifications as read @@ -20,7 +20,7 @@ class WebNotification extends Base $user_id = $this->getUserId(); $this->userUnreadNotification->markAllAsRead($user_id); - $this->response->redirect($this->helper->url->to('app', 'notifications', array('user_id' => $user_id))); + $this->response->redirect($this->helper->url->to('DashboardController', 'notifications', array('user_id' => $user_id))); } /** @@ -34,7 +34,7 @@ class WebNotification extends Base $notification_id = $this->request->getIntegerParam('notification_id'); $this->userUnreadNotification->markAsRead($user_id, $notification_id); - $this->response->redirect($this->helper->url->to('app', 'notifications', array('user_id' => $user_id))); + $this->response->redirect($this->helper->url->to('DashboardController', 'notifications', array('user_id' => $user_id))); } private function getUserId() -- cgit v1.2.3