Skip to content

Commit

Permalink
Fix error in module that breaks all image operations
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Oct 2, 2024
1 parent f2c83c0 commit 4831d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pantheon_advanced_page_cache.module
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function pantheon_advanced_page_cache_file_update(EntityInterface $file) {

// If this is an image, we need to clear the edge cache paths for every
// image style, or those won't work.
if ((class_exists(ImageStyle)) && (strpos($file->getMimeType(), 'image', 0) === 0)) {
if ((class_exists(ImageStyle::class)) && (strpos($file->getMimeType(), 'image', 0) === 0)) {
$styles = ImageStyle::loadMultiple();
foreach ($styles as $style) {
$file_uri = $file->getFileUri();
Expand Down

0 comments on commit 4831d15

Please sign in to comment.