summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-12-04 12:09:33 +0100
committerJulius Härtl <jus@bitgrid.net>2019-12-05 09:54:58 +0100
commite29a76bc79dc252b5659e38287f07c56ffa3e314 (patch)
tree72f3bae6017417f635d08f2541640150e17c226a /apps/files/lib
parent6f540fc09d181ffffb3f698260fdda39a8c58843 (diff)
downloadnextcloud-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.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 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])
]);