Skip to content

Commit

Permalink
Merge pull request #16 from justbetter/feature/mimetype-bugfix
Browse files Browse the repository at this point in the history
Fix order of method parameters
  • Loading branch information
BobWez98 authored Dec 24, 2024
2 parents 70a3419 + 8f48d03 commit 0b34652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Responsive.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function getPresets(Asset $asset): array
}

if (self::canUseMimeTypeSource()) {
if ($glideUrl = self::getGlideUrl($asset, $fit ?? $data['fit'], $preset)) {
if ($glideUrl = self::getGlideUrl($asset, $preset, $fit ?? $data['fit'], $asset->mimeType())) {
$presets[$asset->mimeType()] .= $glideUrl.' '.$size;

if ($preset !== 'placeholder') {
Expand Down

0 comments on commit 0b34652

Please sign in to comment.