From 14713b0ec7ed93ca45578da069ad4e19a7d8addf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 19:48:22 -0400 Subject: Rename all models --- app/Controller/WebNotificationController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/Controller/WebNotificationController.php') diff --git a/app/Controller/WebNotificationController.php b/app/Controller/WebNotificationController.php index 263d6d9e..46a42063 100644 --- a/app/Controller/WebNotificationController.php +++ b/app/Controller/WebNotificationController.php @@ -19,7 +19,7 @@ class WebNotificationController extends BaseController { $user_id = $this->getUserId(); - $this->userUnreadNotification->markAllAsRead($user_id); + $this->userUnreadNotificationModel->markAllAsRead($user_id); $this->response->redirect($this->helper->url->to('DashboardController', 'notifications', array('user_id' => $user_id))); } @@ -33,7 +33,7 @@ class WebNotificationController extends BaseController $user_id = $this->getUserId(); $notification_id = $this->request->getIntegerParam('notification_id'); - $this->userUnreadNotification->markAsRead($user_id, $notification_id); + $this->userUnreadNotificationModel->markAsRead($user_id, $notification_id); $this->response->redirect($this->helper->url->to('DashboardController', 'notifications', array('user_id' => $user_id))); } @@ -45,8 +45,8 @@ class WebNotificationController extends BaseController $user_id = $this->getUserId(); $notification_id = $this->request->getIntegerParam('notification_id'); - $notification = $this->userUnreadNotification->getById($notification_id); - $this->userUnreadNotification->markAsRead($user_id, $notification_id); + $notification = $this->userUnreadNotificationModel->getById($notification_id); + $this->userUnreadNotificationModel->markAsRead($user_id, $notification_id); if (empty($notification)) { $this->response->redirect($this->helper->url->to('DashboardController', 'notifications', array('user_id' => $user_id))); -- cgit v1.2.3