Skip to content

Commit

Permalink
Merge pull request #37 from BRACKETS-by-TRIAD/php74-fix
Browse files Browse the repository at this point in the history
Fixed implode for php 7.4
  • Loading branch information
strstensky authored Jan 24, 2020
2 parents 52e2637 + f4775c4 commit d3d6581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/admin/includes/avatar-uploader.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:max-file-size-in-mb="{{ round(($mediaCollection->getMaxFileSize()/1024/1024), 2) }}"
@endif
@if($mediaCollection->getAcceptedFileTypes())
:accepted-file-types="'{{ implode($mediaCollection->getAcceptedFileTypes(), '') }}'"
:accepted-file-types="'{{ implode('', $mediaCollection->getAcceptedFileTypes()) }}'"
@endif
@if(isset($media) && $media->count() > 0)
:uploaded-images="{{ $media->toJson() }}"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/includes/media-uploader.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:max-file-size-in-mb="{{ round(($mediaCollection->getMaxFileSize()/1024/1024), 2) }}"
@endif
@if($mediaCollection->getAcceptedFileTypes())
:accepted-file-types="'{{ implode($mediaCollection->getAcceptedFileTypes(), '') }}'"
:accepted-file-types="'{{ implode('', $mediaCollection->getAcceptedFileTypes()) }}'"
@endif
@if(isset($media) && $media->count() > 0)
:uploaded-images="{{ $media->toJson() }}"
Expand Down

0 comments on commit d3d6581

Please sign in to comment.