Skip to content

Commit

Permalink
Add default value to "should_create_thumbnails" for backward compatib…
Browse files Browse the repository at this point in the history
…ility.
  • Loading branch information
youchenlee committed Oct 2, 2017
1 parent 882eb39 commit 977594d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/CropController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getCropimage($overWrite = true)
->crop($dataWidth, $dataHeight, $dataX, $dataY)
->save($crop_path);

if (config('lfm.should_create_thumbnails')) {
if (config('lfm.should_create_thumbnails', true)) {
// create thumb folder
parent::createFolderByPath(parent::getThumbPath());

Expand Down
2 changes: 1 addition & 1 deletion src/traits/LfmHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public function fileIsImage($file)
*/
public function imageShouldHaveThumb($file)
{
if (! config('lfm.should_create_thumbnails')) {
if (! config('lfm.should_create_thumbnails', true)) {
return false;
}

Expand Down

0 comments on commit 977594d

Please sign in to comment.