summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/restfunctions.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/includes/restfunctions.php')
-rw-r--r--admin/WebConsole/includes/restfunctions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index d27fdad0..fe331153 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -61,8 +61,8 @@ define('OG_REST_PARAM_DIFF_ID', 'diff_id');
define('OG_REST_PARAM_DIFF_NAME', 'diff_name');
define('OG_REST_PARAM_METHOD', 'method');
-$conf_file = parse_ini_file(__DIR__ . '/../../etc/ogAdmRepo.cfg');
-define('OG_REST_API_TOKEN', 'Authorization: ' . $conf_file['ApiToken']);
+$conf_file = parse_ini_file(__DIR__ . '/../../etc/ogAdmServer.cfg');
+define('OG_REST_API_TOKEN', 'Authorization: ' . $conf_file['APITOKEN']);
function common_request($command, $type, $data = null) {