require_once INSTALLDIR . '/lib/oauthstore.php';
+// @todo FIXME: Class documentation missing.
class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
{
function lookup_consumer($consumerKey)
$id = $app->insert();
if (!$id) {
- // TRANS: Server error displayed when trying to create an anynymous OAuth application.
+ // TRANS: Server error displayed when trying to create an anynymous OAuth application.
$this->serverError(_("Could not create anonymous OAuth application."));
}
}
);
if (empty($req_token)) {
- common_debug("couldn't get request token from oauth datastore");
+ common_debug("Couldn't get request token from oauth datastore");
return null;
}
if (!$result) {
common_log_db_error($appUser, 'INSERT', __FILE__);
- // TRANS: Server error displayed when a database error occurs.
throw new Exception(
+ // TRANS: Exception thrown when a database error occurs.
_('Database error inserting OAuth application user.')
);
}
if (!$result) {
common_log_db_error($appUser, 'UPDATE', __FILE__);
- // TRANS: Server error displayed when a database error occurs.
throw new Exception(
+ // TRANS: Exception thrown when a database error occurs.
_('Database error updating OAuth application user.')
);
}