Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated messaging
rmathis committed Dec 17, 2020
1 parent 18b8e69 commit 93892a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 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.'));
}

/**

0 comments on commit 93892a7

Please sign in to comment.