return false;
}
- $this->notice = Notice::staticGet('id', $id);
+ $this->notice = Notice::getKV('id', $id);
if (empty($this->notice)) {
// TRANS: Client error displayed when trying to repeat a non-existing notice.
$token = $this->trimmed('token-'.$id);
if (empty($token) || $token != common_session_token()) {
+ // TRANS: Client error displayed when the session token does not match or is not given.
$this->clientError(_('There was a problem with your session token. Try again, please.'));
return false;
}
// TRANS: Confirmation text after repeating a notice.
_('Repeated!'));
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
// @todo FIXME!
}