From 4831d157ccf7f178e40eb16a22a33baa41262bc2 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Wed, 2 Oct 2024 08:43:47 -0700 Subject: [PATCH] Fix error in module that breaks all image operations --- pantheon_advanced_page_cache.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pantheon_advanced_page_cache.module b/pantheon_advanced_page_cache.module index aaf7300..4f822d9 100644 --- a/pantheon_advanced_page_cache.module +++ b/pantheon_advanced_page_cache.module @@ -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();