files_trashbin: File can be without extension
Signed-off-by: Jakub Onderka <jakub.onderka@gmail.com>
This commit is contained in:
parent
effca30d10
commit
41f8be47eb
|
@ -103,7 +103,7 @@ class PreviewController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
$pathParts = pathinfo($file->getName());
|
$pathParts = pathinfo($file->getName());
|
||||||
$extension = $pathParts['extension'];
|
$extension = $pathParts['extension'] ?? '';
|
||||||
$fileName = $pathParts['filename'];
|
$fileName = $pathParts['filename'];
|
||||||
/*
|
/*
|
||||||
* Files in the root of the trashbin are timetamped.
|
* Files in the root of the trashbin are timetamped.
|
||||||
|
|
Loading…
Reference in New Issue