Merge pull request #16663 from JakubOnderka/patch-2
files_trashbin: File can be without extension
This commit is contained in:
commit
d013ff6cae
|
@ -103,7 +103,7 @@ class PreviewController extends Controller {
|
|||
}
|
||||
|
||||
$pathParts = pathinfo($file->getName());
|
||||
$extension = $pathParts['extension'];
|
||||
$extension = $pathParts['extension'] ?? '';
|
||||
$fileName = $pathParts['filename'];
|
||||
/*
|
||||
* Files in the root of the trashbin are timetamped.
|
||||
|
|
Loading…
Reference in New Issue