Skip to content

Commit d8cf920

Browse files
committed
update function name
1 parent b3b3cf2 commit d8cf920

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/controllers/CropController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getCrop()
1818
return view('laravel-filemanager::crop')
1919
->with([
2020
'working_dir' => request('working_dir'),
21-
'img' => $this->lfm->get(request('img'))
21+
'img' => $this->lfm->pretty(request('img'))
2222
]);
2323
}
2424

src/controllers/DeleteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DeleteController extends LfmController
1515
public function getDelete()
1616
{
1717
$name_to_delete = request('items');
18-
$file_to_delete = $this->lfm->get($name_to_delete);
18+
$file_to_delete = $this->lfm->pretty($name_to_delete);
1919
$file_path = $file_to_delete->path('absolute');
2020

2121
event(new ImageIsDeleting($file_path));

src/controllers/RenameController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function getRename()
1414
$old_name = $this->helper->input('file');
1515
$new_name = $this->helper->input('new_name');
1616

17-
$old_file = $this->lfm->get($old_name);
17+
$old_file = $this->lfm->pretty($old_name);
1818

1919
$is_directory = $old_file->isDirectory();
2020

src/controllers/ResizeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getResize()
4343
}
4444

4545
return view('laravel-filemanager::resize')
46-
->with('img', $this->lfm->get($image))
46+
->with('img', $this->lfm->pretty($image))
4747
->with('height', number_format($height, 0))
4848
->with('width', $width)
4949
->with('original_height', $original_height)

0 commit comments

Comments
 (0)