if (empty($this->user)) {
// TRANS: Client exception thrown trying to respond to a poll while not logged in.
- throw new ClientException(_m("You must be logged in to respond to a poll."),
+ throw new ClientException(_m('You must be logged in to respond to a poll.'),
403);
}
}
$id = $this->trimmed('id');
- $this->poll = Poll::staticGet('id', $id);
+ $this->poll = Poll::getKV('id', $id);
if (empty($this->poll)) {
// TRANS: Client exception thrown trying to respond to a non-existing poll.
throw new ClientException(_m('Invalid or missing poll.'), 404);