Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e38f8db3 authored by VIEVILLE Thierry's avatar VIEVILLE Thierry
Browse files

.

parent 87cf553f
No related branches found
No related tags found
No related merge requests found
......@@ -442,8 +442,8 @@ 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_uri'])))
self::reportLog("OpenClassroomsAPI::getAuth: Bad '.httpkeys' file format #".isset(self::$httpkeys)."-".isset(self::$httpkeys['OAuth2/client_id'])."-".isset(self::$httpkeys['OAuth2/basic_auth'])."-".isset(self::$httpkeys['OAuth2/reditect_uri']));
if (!(isset($httpkeys) && isset($httpkeys['OAuth2/client_id']) && isset($httpkeys['OAuth2/basic_auth']) && isset($httpkeys['OAuth2/reditect_uri'])))
self::reportLog("OpenClassroomsAPI::getAuth: Bad '.httpkeys' file format #".isset($httpkeys)."-client_id:".isset($httpkeys['OAuth2/client_id'])."-basic_auth:".isset($httpkeys['OAuth2/basic_auth'])."-reditect_uri:".isset($httpkeys['OAuth2/reditect_uri']));
} else {
self::reportLog("OpenClassroomsAPI::getAuth: Unable to read the '.httpkeys' file");
exit(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment