Skip to content

Commit 6a2d2dc

Browse files
committed
fix RenameController
1 parent 3ea004f commit 6a2d2dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/controllers/RenameController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public function getRename()
4343
$new_file = $this->lfm->setName($new_name)->path('absolute');
4444

4545
if ($is_directory) {
46-
event(new FolderIsRenaming($old_file->path('absolute'), $new_file));
46+
event(new FolderIsRenaming($old_file->absolutePath(), $new_file));
4747
} else {
48-
event(new ImageIsRenaming($old_file->path('absolute'), $new_file));
48+
event(new ImageIsRenaming($old_file->absolutePath(), $new_file));
4949
}
5050

5151
if ($old_file->hasThumb()) {
@@ -57,9 +57,9 @@ public function getRename()
5757
->move($this->lfm->setName($new_name));
5858

5959
if ($is_directory) {
60-
event(new FolderWasRenamed($old_file->path('absolute'), $new_file));
60+
event(new FolderWasRenamed($old_file->absolutePath(), $new_file));
6161
} else {
62-
event(new ImageWasRenamed($old_file->path('absolute'), $new_file));
62+
event(new ImageWasRenamed($old_file->absolutePath(), $new_file));
6363
}
6464

6565
return parent::$success_response;

0 commit comments

Comments
 (0)