summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller/DirectEditingController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Controller/DirectEditingController.php')
-rw-r--r--apps/files/lib/Controller/DirectEditingController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/DirectEditingController.php b/apps/files/lib/Controller/DirectEditingController.php
index e8a00981327..b19d0f3ea1d 100644
--- a/apps/files/lib/Controller/DirectEditingController.php
+++ b/apps/files/lib/Controller/DirectEditingController.php
@@ -96,11 +96,11 @@ class DirectEditingController extends OCSController {
/**
* @NoAdminRequired
*/
- public function open(int $fileId, string $editorId = null): DataResponse {
+ public function open(string $path, string $editorId = null): DataResponse {
$this->eventDispatcher->dispatchTyped(new RegisterDirectEditorEvent($this->directEditingManager));
try {
- $token = $this->directEditingManager->open($fileId, $editorId);
+ $token = $this->directEditingManager->open($path, $editorId);
return new DataResponse([
'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])
]);