diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-01-22 13:11:49 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:16 +0100 |
commit | a72a6d73a3c07f41756f77c57829fecbaa42d6ec (patch) | |
tree | 2ffbf6cf0ff604be3afd9b90b331c94957b6c7cc /core | |
parent | 322f7c3c85ff22dd791d15b2fe959f1230e25e43 (diff) | |
download | nextcloud-server-a72a6d73a3c07f41756f77c57829fecbaa42d6ec.tar.gz nextcloud-server-a72a6d73a3c07f41756f77c57829fecbaa42d6ec.zip |
Adjust parameter names on createCollectionOnResource
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/CollaborationResourcesController.php | 4 |
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); } |