File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments