X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FPlugin%2FImageToolkit%2FGDToolkit.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FPlugin%2FImageToolkit%2FGDToolkit.php;h=308a8075b51fe7214a4610c0507aaf5b45c48802;hp=818c5b5cf0ef13d28026ecb01243729e8c829841;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php b/web/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php index 818c5b5cf..308a8075b 100644 --- a/web/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php +++ b/web/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php @@ -224,7 +224,7 @@ class GDToolkit extends ImageToolkitBase { $destination = drupal_tempnam('temporary://', 'gd_'); } // Convert stream wrapper URI to normal path. - $destination = drupal_realpath($destination); + $destination = \Drupal::service('file_system')->realpath($destination); } $function = 'image' . image_type_to_extension($this->getType(), FALSE);