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 1ec43744..5c689a70 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -31,7 +31,7 @@ define('OG_REST_CMD_CREATE_SCHEDULE', 'schedule/create');
define('OG_REST_CMD_DELETE_SCHEDULE', 'schedule/delete');
define('OG_REST_CMD_UPDATE_SCHEDULE', 'schedule/update');
define('OG_REST_CMD_GET_SCHEDULE', 'schedule/get');
-define('OG_REST_CMD_MODES', 'modes');
+define('OG_REST_CMD_MODE', 'mode');
define('OG_REST_PARAM_CLIENTS', 'clients');
define('OG_REST_PARAM_ADDR', 'addr');
@@ -234,7 +234,7 @@ function set_mode($scope_name, $mode) {
$data = array(OG_REST_PARAM_SCOPE_NAME => $scope_name,
OG_REST_PARAM_MODE => $mode);
- common_request(OG_REST_CMD_MODES, POST, $data);
+ common_request(OG_REST_CMD_MODE, POST, $data);
}
function create_image($string_ips, $params) {