diff --git a/src/Event/ImageProcessingListener.php b/src/Event/ImageProcessingListener.php index b280dc57..6ff86b41 100644 --- a/src/Event/ImageProcessingListener.php +++ b/src/Event/ImageProcessingListener.php @@ -322,7 +322,7 @@ public function imagePath(Event $Event) { protected function _buildLocalPath(Event $Event) { extract($Event->data); $path = $this->_buildPath($image, true, $hash); - $Event->data['path'] = '/' . $path; + $Event->data['path'] = $Event->result = '/' . $path; $Event->stopPropagation(); } @@ -367,7 +367,7 @@ protected function _buildAmazonS3Path(Event $Event) { $image['path'] = str_replace('\\', '/', $image['path']); $bucketPrefix = !empty($Event->data['options']['bucketPrefix']) && $Event->data['options']['bucketPrefix'] === true; - $Event->data['path'] = $this->_buildCloudFrontDistributionUrl($http, $image['path'], $bucket, $bucketPrefix, $cfDist); + $Event->data['path'] = $Event->result = $this->_buildCloudFrontDistributionUrl($http, $image['path'], $bucket, $bucketPrefix, $cfDist); $Event->stopPropagation(); }