Skip to content
Snippets Groups Projects
Commit 9d84ae98 authored by Davide Aprea's avatar Davide Aprea
Browse files

fixed key class

parent 7b510145
No related branches found
No related tags found
3 merge requests!1895Development,!1747Development,!1731Resolve "removing integration of obsolete resultpage formats"
...@@ -28,7 +28,7 @@ class Key{ ...@@ -28,7 +28,7 @@ class Key{
public function updateStatus() { public function updateStatus() {
try { try {
$link = "https://key.metager3.de/" . urlencode($key) . "/request-permission/api-access"; $link = "https://key.metager3.de/" . urlencode($this->key) . "/request-permission/api-access";
$result = json_decode(file_get_contents($link)); $result = json_decode(file_get_contents($link));
if ($result->{'api-access'} == true) { if ($result->{'api-access'} == true) {
$this->status = true; $this->status = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment