Skip to content

Commit 1ff2a2d

Browse files
committed
Add default value to "raster_mimetypes" for backward compatibility.
1 parent 977594d commit 1ff2a2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/traits/LfmHelpers.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,10 @@ public function imageShouldHaveThumb($file)
535535

536536
$mime_type = $this->getFileType($file);
537537

538-
return in_array($mime_type, config('lfm.raster_mimetypes'));
538+
return in_array(
539+
$mime_type,
540+
config('lfm.raster_mimetypes', ['image/jpeg', 'image/pjpeg', 'image/png'])
541+
);
539542
}
540543

541544
/**

0 commit comments

Comments
 (0)