From 0d1d2c0b61a4a0bcbc4b08a927fa815f4673d31e Mon Sep 17 00:00:00 2001
From: Tom Needham <needham.thomas@gmail.com>
Date: Thu, 30 Aug 2012 14:01:27 +0000
Subject: [PATCH] Fix class name

---
 lib/api.php        | 2 +-
 settings/oauth.php | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/api.php b/lib/api.php
index c91216179e..55de438f42 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -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();
 		}
diff --git a/settings/oauth.php b/settings/oauth.php
index f088453a26..c6c9be515b 100644
--- a/settings/oauth.php
+++ b/settings/oauth.php
@@ -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;
-- 
GitLab