diff core/lib/Drupal/Core/Updater/Updater.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Updater/Updater.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/lib/Drupal/Core/Updater/Updater.php	Thu May 09 15:33:08 2019 +0100
@@ -111,7 +111,7 @@
       return FALSE;
     }
     foreach ($info_files as $info_file) {
-      if (mb_substr($info_file->filename, 0, -9) == drupal_basename($directory)) {
+      if (mb_substr($info_file->filename, 0, -9) == \Drupal::service('file_system')->basename($directory)) {
         // Info file Has the same name as the directory, return it.
         return $info_file->uri;
       }
@@ -155,7 +155,7 @@
    *   The name of the project.
    */
   public static function getProjectName($directory) {
-    return drupal_basename($directory);
+    return \Drupal::service('file_system')->basename($directory);
   }
 
   /**