Skip to content

Commit

Permalink
[TASK] Update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteeb authored Oct 9, 2024
1 parent 8dd1367 commit 0ccc502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/ImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ protected function buildSingleTag(string $tagName, array $configuration, FileInt
$tag->addAttribute('type', $configuration['type']);
}
// add a type value if there potentially is more than one source with the same media/sizes value.
if ((!empty($configuration['media']) || !empty($configuration['sizes'])) && empty($configuration['type'])) {
if (empty($configuration['media']) && empty($configuration['type'])) {
$path_info = pathinfo($imageUri);
$tag->addAttribute('type', 'image/' . $path_info['extension']);
}
Expand Down

0 comments on commit 0ccc502

Please sign in to comment.