comparison core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
222 if (!isset($local_wrappers[$scheme])) { 222 if (!isset($local_wrappers[$scheme])) {
223 $permanent_destination = $destination; 223 $permanent_destination = $destination;
224 $destination = drupal_tempnam('temporary://', 'gd_'); 224 $destination = drupal_tempnam('temporary://', 'gd_');
225 } 225 }
226 // Convert stream wrapper URI to normal path. 226 // Convert stream wrapper URI to normal path.
227 $destination = drupal_realpath($destination); 227 $destination = \Drupal::service('file_system')->realpath($destination);
228 } 228 }
229 229
230 $function = 'image' . image_type_to_extension($this->getType(), FALSE); 230 $function = 'image' . image_type_to_extension($this->getType(), FALSE);
231 if (!function_exists($function)) { 231 if (!function_exists($function)) {
232 return FALSE; 232 return FALSE;