Fix class name

This commit is contained in:
Tom Needham 2012-08-30 14:01:27 +00:00
parent b26ffdc4d6
commit 0d1d2c0b61
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ class OC_API {
*/
public static function checkLoggedIn(){
// Check OAuth
if(!OC_OAuthServer::isAuthorised()){
if(!OC_OAuth_Server::isAuthorised()){
OC_Response::setStatus(401);
die();
}

View File

@ -22,7 +22,7 @@ switch($operation){
$token = $server->fetch_request_token($request);
echo $token;
} catch (OAuthException $exception) {
OC_Log::write('OC_OAuthServer', $exception->getMessage(), OC_LOG::ERROR);
OC_Log::write('OC_OAuth_Server', $exception->getMessage(), OC_LOG::ERROR);
echo $exception->getMessage();
}
break;
@ -71,7 +71,7 @@ switch($operation){
$token = $server->fetch_access_token($request);
echo $token;
} catch (OAuthException $exception) {
OC_Log::write('OC_OAuthServer', $exception->getMessage(), OC_LOG::ERROR);
OC_Log::write('OC_OAuth_Server', $exception->getMessage(), OC_LOG::ERROR);
echo $exception->getMessage();
}
break;