Skip to content

Commit 38f9292

Browse files
committed
fixup! Use file path for direct editing
1 parent c5c74ee commit 38f9292

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files/lib/Controller/DirectEditingController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ public function create(string $path, string $editorId, string $creatorId, string
9696
/**
9797
* @NoAdminRequired
9898
*/
99-
public function open(string $filePath, string $editorId = null): DataResponse {
99+
public function open(string $path, string $editorId = null): DataResponse {
100100
$this->eventDispatcher->dispatchTyped(new RegisterDirectEditorEvent($this->directEditingManager));
101101

102102
try {
103-
$token = $this->directEditingManager->open($filePath, $editorId);
103+
$token = $this->directEditingManager->open($path, $editorId);
104104
return new DataResponse([
105105
'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])
106106
]);

0 commit comments

Comments
 (0)