diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-04 12:09:33 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-12-05 09:54:58 +0100 |
commit | e29a76bc79dc252b5659e38287f07c56ffa3e314 (patch) | |
tree | 72f3bae6017417f635d08f2541640150e17c226a /apps/files/lib | |
parent | 6f540fc09d181ffffb3f698260fdda39a8c58843 (diff) | |
download | nextcloud-server-e29a76bc79dc252b5659e38287f07c56ffa3e314.tar.gz nextcloud-server-e29a76bc79dc252b5659e38287f07c56ffa3e314.zip |
Use file path for direct editing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/DirectEditingController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/DirectEditingController.php b/apps/files/lib/Controller/DirectEditingController.php index 0a086c3da60..9e3ea0344b8 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]) ]); |