Skip to content
Snippets Groups Projects

Issue #3287994: Automated Drupal 10 compatibility fixes

43 files
+ 119
112
Compare changes
  • Side-by-side
  • Inline
Files
43
@@ -177,8 +177,8 @@ class ImageAPIOptimizePipeline extends ConfigEntityBase implements ImageAPIOptim
Copy image to optimize to a temp location so that:
1. It's always a local image.
2. The filename is only ascii characters.
*/
$file_extension = strtolower(substr(strrchr($image_uri,'.'),1));
*/
$file_extension = strtolower(substr(strrchr($image_uri, '.'), 1));
$temp_image_uri = 'temporary://image_api_optimize_' . Crypt::randomBytesBase64(8) . '.' . $file_extension;
foreach ($this->getProcessors() as $processor) {
Loading