Skip to content

Commit

Permalink
Merge branch 'release/1.4.37' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Aug 9, 2018
2 parents c41c3d1 + 756d949 commit 1fc7efa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ImageOptimize Changelog

## 1.4.37 - 2018.08.09
### Changed
* Reverted an errant commit that removed a fix for propagating field data in multi-site environments
* Ensure that `.webp` variants have fully qualified absolute URLs

## 1.4.36 - 2018.08.06
### Added
* Added the ability to access each image variant's height
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": "nystudio107/craft-imageoptimize",
"description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like Imgix, with zero template changes.",
"type": "craft-plugin",
"version": "1.4.36",
"version": "1.4.37",
"keywords": [
"craft",
"cms",
Expand Down
1 change: 0 additions & 1 deletion src/imagetransforms/CraftImageTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use Craft;
use craft\elements\Asset;
use craft\services\Assets;
use craft\models\AssetTransform;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/imagetransforms/ImageTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static function appendExtension($pathOrUrl, $extension): string
$new_path = $path_parts['filename'] . '.' . $path_parts['extension'] . $extension;
if (!empty($path_parts['dirname']) && $path_parts['dirname'] !== '.') {
$new_path = $path_parts['dirname'] . DIRECTORY_SEPARATOR . $new_path;
$new_path = preg_replace('#/+#', '/', $new_path);
$new_path = preg_replace('/([^:])(\/{2,})/', '$1/', $new_path);
}
$output = $path['prefix'] . $new_path . $path['suffix'];

Expand Down
2 changes: 1 addition & 1 deletion src/services/OptimizedImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function updateOptimizedImageFieldData(Field $field, ElementInterface $as
->update($table, [
$column => $data,
], [
'id' => $asset->contentId,
'elementId' => $asset->getId(),
], [], false)
->execute();
}
Expand Down

0 comments on commit 1fc7efa

Please sign in to comment.