Skip to content

Commit 977594d

Browse files
committed
Add default value to "should_create_thumbnails" for backward compatibility.
1 parent 882eb39 commit 977594d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers/CropController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getCropimage($overWrite = true)
4949
->crop($dataWidth, $dataHeight, $dataX, $dataY)
5050
->save($crop_path);
5151

52-
if (config('lfm.should_create_thumbnails')) {
52+
if (config('lfm.should_create_thumbnails', true)) {
5353
// create thumb folder
5454
parent::createFolderByPath(parent::getThumbPath());
5555

src/traits/LfmHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public function fileIsImage($file)
529529
*/
530530
public function imageShouldHaveThumb($file)
531531
{
532-
if (! config('lfm.should_create_thumbnails')) {
532+
if (! config('lfm.should_create_thumbnails', true)) {
533533
return false;
534534
}
535535

0 commit comments

Comments
 (0)