Mentions légales du service

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

.

parent e38f8db3
Branches
Tags
No related merge requests found
...@@ -442,8 +442,8 @@ class OpenClassroomsAPI { ...@@ -442,8 +442,8 @@ class OpenClassroomsAPI {
$httpkeys_file = plugin_dir_path( __FILE__ ).'.httpkeys'; $httpkeys_file = plugin_dir_path( __FILE__ ).'.httpkeys';
if (is_file($httpkeys_file)) { if (is_file($httpkeys_file)) {
include($httpkeys_file); include($httpkeys_file);
if (!(isset($httpkeys) && isset($httpkeys['OAuth2/client_id']) && isset($httpkeys['OAuth2/basic_auth']) && isset($httpkeys['OAuth2/reditect_uri']))) if (!(isset($httpkeys) && isset($httpkeys['OAuth2/client_id']) && isset($httpkeys['OAuth2/basic_auth']) && isset($httpkeys['OAuth2/redirect_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'])); self::reportLog("OpenClassroomsAPI::getAuth: Bad '.httpkeys' file format #".isset($httpkeys)."-client_id:".isset($httpkeys['OAuth2/client_id'])."-basic_auth:".isset($httpkeys['OAuth2/basic_auth'])."-redirect_uri:".isset($httpkeys['OAuth2/redirect_uri']));
} else { } else {
self::reportLog("OpenClassroomsAPI::getAuth: Unable to read the '.httpkeys' file"); self::reportLog("OpenClassroomsAPI::getAuth: Unable to read the '.httpkeys' file");
exit(0); exit(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment