summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-10-03 11:13:06 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-03 11:32:51 +0200
commitdcfa4519b344c9e39aa697348f810ebc90d94deb (patch)
treeb3ec1a61c8a9ed0a6c1af54715fc6d26dd453cb8 /admin/WebConsole/includes
parent57200ac6c07bd873224ad8135aa35476002fc2e3 (diff)
#915: adapt web to use OG_REST_PARAM_ID constant
Update restore_image() in restfunctions.php to use OG_REST_PARAM_ID constant.
Diffstat (limited to 'admin/WebConsole/includes')
-rw-r--r--admin/WebConsole/includes/restfunctions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index 0321022f..3f71eff6 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -199,7 +199,7 @@ function restore_image($string_ips, $params) {
$type = $matches[0][6];
$data = array(OG_REST_PARAM_DISK => $disk, OG_REST_PARAM_PART => $part,
- OG_REST_PARAM_IMAGE_ID => $image_id, OG_REST_PARAM_NAME => $name,
+ OG_REST_PARAM_ID => $image_id, OG_REST_PARAM_NAME => $name,
OG_REST_PARAM_REPOS => $repos,
OG_REST_PARAM_PROFILE => $profile,
OG_REST_PARAM_TYPE => $type,