function check_code() {
$code = $this->trimmed('code');
- $confirm = Confirm_address::staticGet($code);
+ $confirm = Confirm_address::staticGet('code', $code);
if (!$confirm) {
$this->client_error(_('No such recovery code.'));
if ($msg) {
common_element('div', 'error', $msg);
} else {
- common_element('div', 'instructions',
+ common_element_start('div', 'instructions');
+ common_element('p', NULL,
_('If you\'ve forgotten or lost your' .
' password, you can get a new one sent to' .
' the email address you have stored ' .
' in your account.'));
+ common_element_end('div');
}
}