rename api quarantine single item & list key

This commit is contained in:
Nicolas Le Goff
2012-06-26 18:15:41 +02:00
parent 5909431750
commit 011c3fc59f

View File

@@ -743,7 +743,7 @@ class API_V1_adapter extends API_V1_Abstract
$result->set_datas(array(
'offset_start' => $offset_start,
'per_page' => $per_page,
'items' => $ret,
'quarantine_items' => $ret,
));
return $result;
@@ -762,7 +762,7 @@ class API_V1_adapter extends API_V1_Abstract
throw new \API_V1_exception_forbidden('You do not have access to this quarantine item');
}
$ret = array('item' => $this->list_lazaret_file($lazaretFile));
$ret = array('quarantine_item' => $this->list_lazaret_file($lazaretFile));
$result = new API_V1_result($request, $this);