From 93892a7a96f1058f17d687e512ce842ffeda20f8 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Thu, 17 Dec 2020 15:12:16 -0700 Subject: [PATCH] updated messaging --- Controller/GrouperGroupsController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index b0606e2..56442e1 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -119,13 +119,13 @@ public function joinGroup() if ($this->request->is('post')) { $name = $this->request->data['GroupName']; if($this->GrouperGroup->joinGroup($this->userId, $name)) { - $this->Flash->success(__(_txt('You have been added to the group!'))); + $this->Flash->success(_txt('You have been added to the group!')); } else { - $this->Flash->error(__(_txt('You are unable to join the group!'))); + $this->Flash->error(_txt('You are unable to join the group!')); } return $this->redirect(array('action' => 'groupoptin')); } - $this->Flash->error(__(_txt('An error occurred in joining the group, please try again later.'))); + $this->Flash->error(_txt('An error occurred in joining the group, please try again later.')); } @@ -134,13 +134,13 @@ public function leaveGroup() if ($this->request->is('post')) { $name = $this->request->data['GroupName']; if($this->GrouperGroup->leaveGroup($this->userId, $name)) { - $this->Flash->success(__(_txt('You have been deleted from the group!'))); + $this->Flash->success(_txt('You have been deleted from the group!')); } else { - $this->Flash->error(__(_txt('You are unable to delete the group!'))); + $this->Flash->error(_txt('You are unable to delete the group!')); } return $this->redirect(array('action' => 'groupoptin')); } - $this->Flash->error(__(_txt('An error occurred in leaving the group, please try again later.'))); + $this->Flash->error(_txt('An error occurred in leaving the group, please try again later.')); } /**