Skip to content

Commit

Permalink
Add default value to "raster_mimetypes" for backward compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
youchenlee committed Oct 2, 2017
1 parent 977594d commit 1ff2a2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/traits/LfmHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ public function imageShouldHaveThumb($file)

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

return in_array($mime_type, config('lfm.raster_mimetypes'));
return in_array(
$mime_type,
config('lfm.raster_mimetypes', ['image/jpeg', 'image/pjpeg', 'image/png'])
);
}

/**
Expand Down

0 comments on commit 1ff2a2d

Please sign in to comment.