exit(1);
}
-require_once INSTALLDIR . '/lib/apioauthstore.php';
+require_once INSTALLDIR . '/lib/applicationlist.php';
/**
* Show connected OAuth applications
$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->showForm(_('There was a problem with your session token. '.
'Try again, please.'));
return;
return false;
}
- $app = Oauth_application::staticGet('id', $appUser->application_id);
+ $app = Oauth_application::getKV('id', $appUser->application_id);
- $datastore = new ApiStatusNetOAuthDataStore();
+ $datastore = new ApiGNUsocialOAuthDataStore();
$datastore->revoke_token($appUser->token, 1);
$result = $appUser->delete();