Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-22 15:11:49 +0300
committerJulius Härtl <jus@bitgrid.net>2019-03-01 22:56:16 +0300
commita72a6d73a3c07f41756f77c57829fecbaa42d6ec (patch)
tree2ffbf6cf0ff604be3afd9b90b331c94957b6c7cc /core/Controller
parent322f7c3c85ff22dd791d15b2fe959f1230e25e43 (diff)
Adjust parameter names on createCollectionOnResource
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/CollaborationResourcesController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php
index e9fc7b1ac70..ea21f0c584a 100644
--- a/core/Controller/CollaborationResourcesController.php
+++ b/core/Controller/CollaborationResourcesController.php
@@ -168,13 +168,13 @@ class CollaborationResourcesController extends OCSController {
* @param string $name
* @return DataResponse
*/
- public function createCollectionOnResource(string $resourceType, string $resourceId, string $name): DataResponse {
+ public function createCollectionOnResource(string $baseResourceType, string $baseResourceId, string $name): DataResponse {
if (!isset($name[0]) || isset($name[64])) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
}
try {
- $resource = $this->manager->getResource($resourceType, $resourceId);
+ $resource = $this->manager->getResource($baseResourceType, $baseResourceId);
} catch (CollectionException $e) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}