Skip to content
Snippets Groups Projects
Commit 0d1d2c0b authored by Tom Needham's avatar Tom Needham
Browse files

Fix class name

parent b26ffdc4
Branches
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ class OC_API { ...@@ -166,7 +166,7 @@ class OC_API {
*/ */
public static function checkLoggedIn(){ public static function checkLoggedIn(){
// Check OAuth // Check OAuth
if(!OC_OAuthServer::isAuthorised()){ if(!OC_OAuth_Server::isAuthorised()){
OC_Response::setStatus(401); OC_Response::setStatus(401);
die(); die();
} }
......
...@@ -22,7 +22,7 @@ switch($operation){ ...@@ -22,7 +22,7 @@ switch($operation){
$token = $server->fetch_request_token($request); $token = $server->fetch_request_token($request);
echo $token; echo $token;
} catch (OAuthException $exception) { } 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(); echo $exception->getMessage();
} }
break; break;
...@@ -71,7 +71,7 @@ switch($operation){ ...@@ -71,7 +71,7 @@ switch($operation){
$token = $server->fetch_access_token($request); $token = $server->fetch_access_token($request);
echo $token; echo $token;
} catch (OAuthException $exception) { } 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(); echo $exception->getMessage();
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment