Skip to content

Commit

Permalink
fixup! Use file path for direct editing
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Dec 4, 2019
1 parent c5c74ee commit 38f9292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/lib/Controller/DirectEditingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ public function create(string $path, string $editorId, string $creatorId, string
/**
* @NoAdminRequired
*/
public function open(string $filePath, 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($filePath, $editorId);
$token = $this->directEditingManager->open($path, $editorId);
return new DataResponse([
'url' => $this->urlGenerator->linkToRouteAbsolute('files.DirectEditingView.edit', ['token' => $token])
]);
Expand Down

0 comments on commit 38f9292

Please sign in to comment.