Fix class name
This commit is contained in:
parent
b26ffdc4d6
commit
0d1d2c0b61
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue