Skip to content

Commit

Permalink
2.2.1 - fix #173
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 23, 2024
1 parent dd1d643 commit a160e22
Show file tree
Hide file tree
Showing 2 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 @@
# Release Notes for Amazon S3 for Craft CMS

## 2.2.1 - 2024-03-22

- Fixed an error that occurred when auto-detecting images’ focal points in Craft 5, when the volume had a subpath. ([#173](https://github.com/craftcms/aws-s3/issues/173))

## 2.2.0 - 2024-03-13

- Uploads will now include the `x-amz-server-side-encryption: AES256` header for parity with S3 defaults. ([#172](https://github.com/craftcms/aws-s3/pull/172), [#174](https://github.com/craftcms/aws-s3/pull/174))
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function init()
return;
}

$fullPath = (method_exists($volume, 'getSubpath') ? $volume->getSubpath() : '') .
(!empty($filesystem->subfolder) ? rtrim($filesystem->subfolder, '/') . '/' : '') .
$fullPath = (!empty($filesystem->subfolder) ? rtrim($filesystem->subfolder, '/') . '/' : '') .
(method_exists($volume, 'getSubpath') ? $volume->getSubpath() : '') .
$asset->getPath();

$focalPoint = $filesystem->detectFocalPoint($fullPath);
Expand Down

0 comments on commit a160e22

Please sign in to comment.