diff core/modules/update/update.manager.inc @ 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
line wrap: on
line diff
--- a/core/modules/update/update.manager.inc	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/update/update.manager.inc	Mon Apr 23 09:46:53 2018 +0100
@@ -208,7 +208,7 @@
   $remote_schemes = ['http', 'https', 'ftp', 'ftps', 'smb', 'nfs'];
   if (!isset($parsed_url['scheme']) || !in_array($parsed_url['scheme'], $remote_schemes)) {
     // This is a local file, just return the path.
-    return drupal_realpath($url);
+    return \Drupal::service('file_system')->realpath($url);
   }
 
   // Check the cache and download the file if needed.