Skip to content

Commit

Permalink
Fixed dumb bug. Bump to 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Jun 23, 2023
1 parent 37e3f8b commit e0afa5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MuxMate Changelog

## 1.1.3 - 2023-06-23
### Fixed
- Fixed dumb bug

## 1.1.2 - 2023-06-21
### Fixed
- Fixed an issue where not all params passed to `getMuxImageUrl()` would make it
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vaersaagod/muxmate",
"description": "Mux ado about streaming, mate!",
"type": "craft-plugin",
"version": "1.1.2",
"version": "1.1.3",
"require": {
"php": ">=8.1",
"craftcms/cms": "^4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/MuxApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static function getImageUrl(string $muxPlaybackId, array $params = []): s
{

if (!isset($params['fit_mode'])) {
if (($params['width'] ?? null) && ($params['height'])) {
if (isset($params['width']) && isset($params['height'])) {
$params['fit_mode'] = 'smartcrop';
} else {
$params['fit_mode'] = 'preserve';
Expand Down

0 comments on commit e0afa5c

Please sign in to comment.