}
$id = (int)$this->arg('id');
- $this->app = Oauth_application::staticGet('id', $id);
+ $this->app = Oauth_application::getKV('id', $id);
if (empty($this->app)) {
// TRANS: Client error displayed trying to delete an application that does not exist.
// CSRF protection
$token = $this->trimmed('token');
if (!$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.'));
return;
}
'submit form_action-primary',
'no',
// TRANS: Submit button title for 'No' when deleting an application.
- _('Do not delete this application'));
+ _('Do not delete this application.'));
$this->submit('form_action-yes',
// TRANS: Button label on the delete application form.
_m('BUTTON','Yes'),
'submit form_action-secondary',
// TRANS: Submit button title for 'Yes' when deleting an application.
- 'yes', _('Delete this application'));
+ 'yes', _('Delete this application.'));
$this->elementEnd('fieldset');
$this->elementEnd('form');
}