diff options
Diffstat (limited to 'auth/callback/index.php')
-rw-r--r-- | auth/callback/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/callback/index.php b/auth/callback/index.php index 8d040e9..3b9d6eb 100644 --- a/auth/callback/index.php +++ b/auth/callback/index.php @@ -8,7 +8,7 @@ if (!isset($_GET['code'])) { die(); } -$appdata = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); +$appdata = $GLOBALS["ColdHazeApp"]; $crl = curl_init('https://' . $server . '/hub/api/rest/oauth2/token'); curl_setopt($crl, CURLOPT_RETURNTRANSFER, true); |