Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix: update ThumbnailUrlTemplate to support newer versions
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
tinect committed May 16, 2022
1 parent 6f59b88 commit 3b35f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
}
],
"require": {
"shopware/core": "*",
"frosh/platform-thumbnail-processor": "*"
"frosh/platform-thumbnail-processor": "^1.0.20"
},
"extra": {
"shopware-plugin-class": "Frosh\\ThumbnailProcessorImgProxy\\FroshPlatformThumbnailProcessorImgProxy",
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ThumbnailUrlTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(SystemConfigService $systemConfigService, ThumbnailU
* @param string $width
* @param string $height
*/
public function getUrl($mediaUrl, $mediaPath, $width, $height): string
public function getUrl($mediaUrl, $mediaPath, $width, $height = ''): string
{
$keyBin = pack('H*', $this->key);
$saltBin = pack('H*', $this->salt);
Expand Down

0 comments on commit 3b35f5d

Please sign in to comment.