From a400213ea91cac1e261f351cee3d2dd2dff1d0b0 Mon Sep 17 00:00:00 2001
From: vthierry <thierry.vieville@inria.fr>
Date: Wed, 10 Oct 2018 20:33:54 +0200
Subject: [PATCH] .

---
 oc_api/OpenClassroomsAPI.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oc_api/OpenClassroomsAPI.php b/oc_api/OpenClassroomsAPI.php
index 3df43a2..e2be08b 100644
--- a/oc_api/OpenClassroomsAPI.php
+++ b/oc_api/OpenClassroomsAPI.php
@@ -442,7 +442,7 @@ class OpenClassroomsAPI {
       $httpkeys_file = plugin_dir_path( __FILE__ ).'.httpkeys';
       if (is_file($httpkeys_file)) {
 	include($httpkeys_file);
-	if (!(isset(self::$httpkeys) && isset(self::$httpkeys['OAuth2/client_id']) && isset(self::$httpkeys['OAuth2/basic_auth']) && isset(self::$httpkeys['OAuth2/reditect_url'])))
+	if (!(isset(self::$httpkeys) && isset(self::$httpkeys['OAuth2/client_id']) && isset(self::$httpkeys['OAuth2/basic_auth']) && isset(self::$httpkeys['OAuth2/reditect_uri'])))
 	  self::reportLog("OpenClassroomsAPI::getAuth: Bad '.httpkeys' file format");
       } else {
 	self::reportLog("OpenClassroomsAPI::getAuth: Unable to read the '.httpkeys' file");
-- 
GitLab