Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/system/classes/ImageResizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ public function getConfig()
$disk->getAdapter()->setPathPrefix($realPath);
}
}

// Include last modified time to tie generated images to the source image
$mtime = $disk->lastModified($this->image['path']);

// Handle disks that can't be serialized by referencing them by their
// filesystems.php config name
Expand All @@ -243,6 +246,7 @@ public function getConfig()
'image' => [
'disk' => $disk,
'path' => $this->image['path'],
'mtime' => $mtime,
'source' => $this->image['source'],
],
'width' => $this->width,
Expand Down