if (empty($this->_group)) {
// TRANS: Client exception thrown when referencing a non-existing group.
- throw new ClientException(_('No such group'), 404);
+ throw new ClientException(_('No such group.'), 404);
}
$kv = array('group_id' => $groupId,
if (empty($this->_membership)) {
// TRANS: Client exception thrown when trying to show membership of a non-subscribed group
- throw new ClientException(_('Not a member'), 404);
+ throw new ClientException(_('Not a member.'), 404);
}
return true;
break;
default:
// TRANS: Client exception thrown when using an unsupported HTTP method.
- throw new ClientException(_('HTTP method not supported'), 405);
+ throw new ClientException(_('HTTP method not supported.'), 405);
break;
}
return;
$this->auth_user->id != $this->_profile->id) {
// TRANS: Client exception thrown when deleting someone else's membership.
throw new ClientException(_("Cannot delete someone else's".
- " membership"), 403);
+ " membership."), 403);
}
if (Event::handle('StartLeaveGroup', array($this->_group, $this->auth_user))) {